Firmware SDK
|
Library to communicate with Infra Grid Module with Panasonic AMG8833 Grid-EYE sensor. More...
Typedefs | |
typedef struct twr_module_infra_grid_t | twr_module_infra_grid_t |
Infra Grid Module instance. | |
Enumerations | |
enum | twr_module_infra_grid_event_t { TWR_MODULE_INFRA_GRID_EVENT_ERROR = 0 , TWR_MODULE_INFRA_GRID_EVENT_UPDATE = 1 } |
Callback events. More... | |
enum | twr_module_infra_grid_revision_t { TWR_MODULE_INFRA_GRID_REVISION_R1_0 = 0 , TWR_MODULE_INFRA_GRID_REVISION_R1_1 = 1 } |
Infragrid Module Revision. More... | |
Library to communicate with Infra Grid Module with Panasonic AMG8833 Grid-EYE sensor.
Callback events.
Enumerator | |
---|---|
TWR_MODULE_INFRA_GRID_EVENT_ERROR | Error event. |
TWR_MODULE_INFRA_GRID_EVENT_UPDATE | Update event. |
Definition at line 14 of file twr_module_infra_grid.h.
Infragrid Module Revision.
Enumerator | |
---|---|
TWR_MODULE_INFRA_GRID_REVISION_R1_0 | Revision 1.0. |
TWR_MODULE_INFRA_GRID_REVISION_R1_1 | Revision 1.1. |
Definition at line 30 of file twr_module_infra_grid.h.
twr_module_infra_grid_revision_t twr_module_infra_grid_get_revision | ( | twr_module_infra_grid_t * | self | ) |
Get module revision.
[in] | self | Instance |
Definition at line 415 of file twr_module_infra_grid.c.
bool twr_module_infra_grid_get_temperatures_celsius | ( | twr_module_infra_grid_t * | self, |
float * | values | ||
) |
Get measured temperature in degrees of Celsius as a array of float numbers.
[in] | self | Instance |
[out] | values | Pointer to float array of size 64 where result will be stored |
Definition at line 120 of file twr_module_infra_grid.c.
void twr_module_infra_grid_init | ( | twr_module_infra_grid_t * | self | ) |
Initialize Infra Grid Module.
[in] | self | Instance |
Definition at line 42 of file twr_module_infra_grid.c.
bool twr_module_infra_grid_measure | ( | twr_module_infra_grid_t * | self | ) |
Start measurement manually.
[in] | self | Instance |
Definition at line 83 of file twr_module_infra_grid.c.
Referenced by twr_module_infra_grid_set_update_interval().
float twr_module_infra_grid_read_thermistor | ( | twr_module_infra_grid_t * | self | ) |
Read and return thermistor temperature sensor value.
[in] | self | Instance |
Definition at line 97 of file twr_module_infra_grid.c.
bool twr_module_infra_grid_read_values | ( | twr_module_infra_grid_t * | self | ) |
Read measured data from sensor to the buffer.
[in] | self | Instance |
Definition at line 108 of file twr_module_infra_grid.c.
void twr_module_infra_grid_set_event_handler | ( | twr_module_infra_grid_t * | self, |
void(*)(twr_module_infra_grid_t *, twr_module_infra_grid_event_t, void *) | event_handler, | ||
void * | event_param | ||
) |
Set callback function.
[in] | self | Instance |
[in] | event_handler | Function address |
[in] | event_param | Optional event parameter (can be NULL) |
Definition at line 57 of file twr_module_infra_grid.c.
void twr_module_infra_grid_set_update_interval | ( | twr_module_infra_grid_t * | self, |
twr_tick_t | interval | ||
) |
Set measurement interval.
[in] | self | Instance |
[in] | interval | Measurement interval |
Definition at line 63 of file twr_module_infra_grid.c.