irsense3 2.0.0.0
|
Functions | |
void | irsense3_cfg_setup (irsense3_cfg_t *cfg) |
Config Object Initialization function. | |
IRSENSE3_RETVAL | irsense3_init (irsense3_t *ctx, irsense3_cfg_t *cfg) |
Initialization function. | |
void | irsense3_default_cfg (irsense3_t *ctx) |
Click Default Configuration function. | |
void | irsense3_generic_write (irsense3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | irsense3_generic_read (irsense3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | irsense3_get_interrupt_state (irsense3_t *ctx) |
Get Interrupt state. | |
float | irsense3_get_temperature_data (irsense3_t *ctx) |
Temperature data. | |
float | irsense3_get_ir_sensor_data (irsense3_t *ctx) |
Output current of IR sensor. | |
uint8_t | irsense3_human_approach_detect (irsense3_t *ctx) |
Human approach detection. | |
void | irsense3_software_reset (irsense3_t *ctx) |
Software reset. | |
void irsense3_cfg_setup | ( | irsense3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void irsense3_default_cfg | ( | irsense3_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for IrSense3 click.
void irsense3_generic_read | ( | irsense3_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void irsense3_generic_write | ( | irsense3_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint8_t irsense3_get_interrupt_state | ( | irsense3_t * | ctx | ) |
Get Interrupt state.
ctx | Click object. |
Interrupt | state on the INT pin |
float irsense3_get_ir_sensor_data | ( | irsense3_t * | ctx | ) |
Output current of IR sensor.
ctx | Click object. |
Current | of the IR sensor in [pA] |
float irsense3_get_temperature_data | ( | irsense3_t * | ctx | ) |
Temperature data.
ctx | Click object. |
Temperature | data in [C] |
uint8_t irsense3_human_approach_detect | ( | irsense3_t * | ctx | ) |
Human approach detection.
ctx | Click object. |
1 | - if presence is detected or 0 - if there isn't presence detected |
IRSENSE3_RETVAL irsense3_init | ( | irsense3_t * | ctx, |
irsense3_cfg_t * | cfg ) |
Initialization function.
irsense3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void irsense3_software_reset | ( | irsense3_t * | ctx | ) |
Software reset.
ctx | Click object. |