IRPyro API
(sKEMLIB1)
Collection of routines and data structures covering the functionality of the IRPyro sensor
|
Public functions of IRPyro: Open, Read, IOCTL and Close. More...
Functions | |
uint8_t | IRPyro_close (IRPyro_sensor_device_type *this_device) |
Stops streaming, deallocates memory and disable the IRPyro sensor. More... | |
uint8_t | IRPyro_ioctl (IRPyro_sensor_device_type *this_device, IRPyro_cmd_type *cmd, IRPyro_arg_type arg) |
access to IRPyro registers More... | |
uint8_t | IRPyro_open (IRPyro_sensor_device_type *this_device) |
Initializes the IRPyro device. More... | |
uint8_t | IRPyro_read (IRPyro_sensor_device_type *this_device) |
Reads a frame of data from the IRPyro. More... | |
Public functions of IRPyro: Open, Read, IOCTL and Close.
uint8_t IRPyro_close | ( | IRPyro_sensor_device_type * | this_device | ) |
Stops streaming, deallocates memory and disable the IRPyro sensor.
this_device | pointer to the IRPyro data structure |
None |
Definition at line 345 of file IRPyro_API_single_device_layer.c.
uint8_t IRPyro_ioctl | ( | IRPyro_sensor_device_type * | this_device, |
IRPyro_cmd_type * | cmd, | ||
IRPyro_arg_type | arg | ||
) |
access to IRPyro registers
this_device | pointer to the IRPyro data structure |
cmd | pointer to command data structure |
arg | pointer to argument data structure |
1 | success / 0 fail |
Definition at line 426 of file IRPyro_API_single_device_layer.c.
uint8_t IRPyro_open | ( | IRPyro_sensor_device_type * | this_device | ) |
Initializes the IRPyro device.
this_device | pointer to the IRPyro data structure |
op_result | 1 success / 0 error |
Definition at line 321 of file IRPyro_API_single_device_layer.c.
uint8_t IRPyro_read | ( | IRPyro_sensor_device_type * | this_device | ) |
Reads a frame of data from the IRPyro.
Sensor data sampling into the FIFO (SECTION 12.6.1 ) There are two methods of sampling the data available in the FIFO: Polling mode or Interrupt mode.
IMPORTANT: FIFO data collected is stored in the first available position of the channel_value array.
One channel active: channel 2 -> channel_value[0] Four channels active: channel 1 -> channel_value[0] channel 2 -> channel_value[1] channel 3 -> channel_value[2] channel 4 -> channel_value[3] For both cases: frame counter -> channel_value[5]
this_device | pointer to the IRPyro data structure |
op_result | 1 success / 0 error |
Definition at line 385 of file IRPyro_API_single_device_layer.c.