grideye 2.0.0.0
|
Functions | |
void | grideye_cfg_setup (grideye_cfg_t *cfg) |
Config Object Initialization function. | |
GRIDEYE_RETVAL | grideye_init (grideye_t *ctx, grideye_cfg_t *cfg) |
Initialization function. | |
void | grideye_default_cfg (grideye_t *ctx) |
Click Default Configuration function. | |
void | grideye_generic_write (grideye_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | grideye_generic_read (grideye_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | grideye_write_data (grideye_t *ctx, uint8_t wr_addr, uint16_t wr_data) |
Write data function. | |
uint16_t | grideye_read_data (grideye_t *ctx, uint8_t rd_addr) |
Data read function. | |
void | grideye_read_grid (grideye_t *ctx, int16_t *buffer) |
Read whole grid function. | |
uint8_t | grideye_check_interrupt (grideye_t *ctx) |
Get Interrupt state function. | |
void | grideye_set_power_control (grideye_t *ctx, uint8_t pow_cnt) |
Set Power Control function. | |
uint8_t | grideye_read_power_control (grideye_t *ctx) |
Read Power Control function. | |
void | grideye_flag_reset (grideye_t *ctx) |
Flag reset function. | |
void | grideye_initial_reset (grideye_t *ctx) |
Initial reset function. | |
void | grideye_set_fps1 (grideye_t *ctx) |
Set FPS 1 function. | |
void | grideye_set_fps10 (grideye_t *ctx) |
Set FPS 10 function. | |
uint8_t | grideye_check_fps (grideye_t *ctx) |
Check FPS function. | |
void | grideye_set_int_ctl_reg (grideye_t *ctx, uint8_t int_cnt) |
Set Interrupt Control Register function. | |
uint8_t | grideye_read_int_ctl_reg (grideye_t *ctx) |
Read Interrupt Control Register function. | |
uint8_t | grideye_read_stat_reg (grideye_t *ctx) |
Read Status Register function. | |
void | grideye_set_stat_clr_reg (grideye_t *ctx, uint8_t int_cnt) |
Set Status Clear Register function. | |
void | grideye_set_ave_reg (grideye_t *ctx, uint8_t mamod) |
Set Average Register function. | |
uint8_t | grideye_read_ave_reg (grideye_t *ctx) |
Read Average Register function. | |
void | grideye_write_int_lvl_high (grideye_t *ctx, uint16_t wr_data) |
Set interrupt level high function. | |
void | grideye_write_int_lvl_low (grideye_t *ctx, uint16_t wr_data) |
Set interrupt level low function. | |
uint16_t | grideye_read_int_lvl_high (grideye_t *ctx) |
Read interrupt level high function. | |
uint16_t | grideye_read_int_lvl_low (grideye_t *ctx) |
Read interrupt level low function. | |
void | grideye_write_int_hyst_lvl (grideye_t *ctx, uint16_t wr_data) |
Set interrupt hysteresis level function. | |
uint16_t | grideye_read_int_hyst_lvl (grideye_t *ctx) |
Read interrupt hysteresis level function. | |
float | grideye_read_therm_temp_reg (grideye_t *ctx) |
Read Thermistor Temperature Register function. | |
uint8_t | grideye_read_int0 (grideye_t *ctx) |
Read Interrupt Table Register 0 function. | |
uint8_t | grideye_read_int1 (grideye_t *ctx) |
Read Interrupt Table Register 1 function. | |
uint8_t | grideye_read_int2 (grideye_t *ctx) |
Read Interrupt Table Register 2 function. | |
uint8_t | grideye_read_int3 (grideye_t *ctx) |
Read Interrupt Table Register 3 function. | |
uint8_t | grideye_read_int4 (grideye_t *ctx) |
Read Interrupt Table Register 4 function. | |
uint8_t | grideye_read_int5 (grideye_t *ctx) |
Read Interrupt Table Register 5 function. | |
uint8_t | grideye_read_int6 (grideye_t *ctx) |
Read Interrupt Table Register 6 function. | |
uint8_t | grideye_read_int7 (grideye_t *ctx) |
Read Interrupt Table Register 7 function. | |
void grideye_cfg_setup | ( | grideye_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t grideye_check_fps | ( | grideye_t * | ctx | ) |
Check FPS function.
ctx | Click object. |
@description Function is used to check what fps setting is applied.
uint8_t grideye_check_interrupt | ( | grideye_t * | ctx | ) |
Get Interrupt state function.
ctx | Click object. |
@description Function is used to check if an interrupt has occured.
void grideye_default_cfg | ( | grideye_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Grideye click.
void grideye_flag_reset | ( | grideye_t * | ctx | ) |
Flag reset function.
ctx | Click object. |
@description Function is used to reset flags.
void grideye_generic_read | ( | grideye_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 grideye_generic_write | ( | grideye_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. |
@description This function writes data to the desired register.
GRIDEYE_RETVAL grideye_init | ( | grideye_t * | ctx, |
grideye_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void grideye_initial_reset | ( | grideye_t * | ctx | ) |
Initial reset function.
ctx | Click object. |
@description Function is used to perform initial reset.
uint8_t grideye_read_ave_reg | ( | grideye_t * | ctx | ) |
Read Average Register function.
ctx | Click object. |
@description Function is used to check average output mode.
uint16_t grideye_read_data | ( | grideye_t * | ctx, |
uint8_t | rd_addr ) |
Data read function.
ctx | Click object. |
rd_addr | 8-bit register address |
@description Function reads two bytes of data from two consecutive registers.
void grideye_read_grid | ( | grideye_t * | ctx, |
int16_t * | buffer ) |
Read whole grid function.
ctx | Click object. |
buffer | data array used to store data from each of 128 registers of the grid |
@description Function is used to reada data from the whole sensor grid.
uint8_t grideye_read_int0 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 0 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int1 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 1 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int2 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 2 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int3 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 3 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int4 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 4 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int5 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 5 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int6 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 6 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int7 | ( | grideye_t * | ctx | ) |
Read Interrupt Table Register 7 function.
ctx | Click object. |
@description Function is used to check pixels with temperature outputs are over the threshold.
uint8_t grideye_read_int_ctl_reg | ( | grideye_t * | ctx | ) |
Read Interrupt Control Register function.
ctx | Click object. |
@description Function is used to check interrupt control settings.
uint16_t grideye_read_int_hyst_lvl | ( | grideye_t * | ctx | ) |
Read interrupt hysteresis level function.
ctx | Click object. |
@description Funkction is used to check interrupt hysteresis level limit.
uint16_t grideye_read_int_lvl_high | ( | grideye_t * | ctx | ) |
Read interrupt level high function.
ctx | Click object. |
@description Funkction is used to check interrupt level upper limit.
uint16_t grideye_read_int_lvl_low | ( | grideye_t * | ctx | ) |
Read interrupt level low function.
ctx | Click object. |
@description Funkction is used to check interrupt level lower limit.
uint8_t grideye_read_power_control | ( | grideye_t * | ctx | ) |
Read Power Control function.
ctx | Click object. |
@description Function is used to read Power Control register.
uint8_t grideye_read_stat_reg | ( | grideye_t * | ctx | ) |
Read Status Register function.
ctx | Click object. |
@description Function is used to read status register.
float grideye_read_therm_temp_reg | ( | grideye_t * | ctx | ) |
Read Thermistor Temperature Register function.
ctx | Click object. |
@description Function is used to read register which indicate thermistor temperature data.
void grideye_set_ave_reg | ( | grideye_t * | ctx, |
uint8_t | mamod ) |
Set Average Register function.
ctx | Click object. |
mamod | 8-bit data representing average output mode |
@description Function is used to set average output mode.
void grideye_set_fps1 | ( | grideye_t * | ctx | ) |
Set FPS 1 function.
ctx | Click object. |
@description Function is used for setting Frame Rate to 1FPS.
void grideye_set_fps10 | ( | grideye_t * | ctx | ) |
Set FPS 10 function.
ctx | Click object. |
@description Function is used for setting Frame Rate to 10FPS.
void grideye_set_int_ctl_reg | ( | grideye_t * | ctx, |
uint8_t | int_cnt ) |
Set Interrupt Control Register function.
ctx | Click object. |
int_cnt | 8-bit data representing interrupt control settings |
@description Function is used to apply interrupt control settings.
void grideye_set_power_control | ( | grideye_t * | ctx, |
uint8_t | pow_cnt ) |
Set Power Control function.
ctx | Click object. |
pow_cnt | 8-bit data representing operating mode of device |
@description Function is used to set operating mode of device.
void grideye_set_stat_clr_reg | ( | grideye_t * | ctx, |
uint8_t | int_cnt ) |
Set Status Clear Register function.
ctx | Click object. |
int_cnt | 8-bit data representing status clear settings |
@description Function is used to clear the Overflow Flags and Interrupt Flag.
void grideye_write_data | ( | grideye_t * | ctx, |
uint8_t | wr_addr, | ||
uint16_t | wr_data ) |
Write data function.
ctx | Click object. |
wr_addr | 8-bit register address |
wr_data | 16-bit data to be written into registers |
@description Function writes two bytes of data into two consecutive registers.
void grideye_write_int_hyst_lvl | ( | grideye_t * | ctx, |
uint16_t | wr_data ) |
Set interrupt hysteresis level function.
ctx | Click object. |
wr_data | 16-bit data representing interrupt hysteresis level limit setting |
@description Funkction is used to set interrupt hysteresis level limit.
void grideye_write_int_lvl_high | ( | grideye_t * | ctx, |
uint16_t | wr_data ) |
Set interrupt level high function.
ctx | Click object. |
wr_data | 16-bit data representing interrupt level upper limit setting |
@description Funkction is used to set interrupt level upper limit.
void grideye_write_int_lvl_low | ( | grideye_t * | ctx, |
uint16_t | wr_data ) |
Set interrupt level low function.
wr_data | 16-bit data representing interrupt level lower limit setting |
@description Funkction is used to set interrupt level lower limit.