UDMA Timestamp
- group UDMA_TIMESTAMP
Timestamp.
This API provides support to handle timestamp feature on UDMA channels.
Enums
-
enum [anonymous]
Values:
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_CLR = 1
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_STOP
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_EVT_ALLOC
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_SET_EVT
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_SET_DEST
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_SET_INPUT
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_FREE_EVT
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_FREE_INPUT
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_GET_LIN_ID
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_GET_FIFO_ID
-
enumerator PI_UDMA_TIMESTAMP_IOCTL_CLR = 1
Functions
-
void pi_timestamp_conf_init(struct pi_timestamp_conf *conf)
-
void pi_udma_timestamp_open(struct pi_device *timestamp)
-
void pi_udma_timestamp_close(struct pi_device *timestamp)
-
int32_t pi_udma_timestamp_ioctl(struct pi_device *timestamp, uint32_t cmd, void *arg)
-
struct pi_timestamp_conf
Public Members
-
uint8_t itf
device ID for timestamp
-
uint8_t cnt_trig_gpio
gpio number for trigger the timestamp cnter
-
pi_timestamp_cnt_gpio_trig_type_e cnt_trig_type
how the gpio trigger the timestamp counter
-
pi_timestamp_cnt_src_e cnt_src
timestamp counter source
-
uint8_t cnt_src_id
GPIO/PWM ID depends on the counter source
-
uint8_t prescaler
Prescaler for timestamp counter
-
uint8_t itf
-
struct pi_timestamp_input_t
-
struct pi_timestamp_event_t
-
enum [anonymous]