Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_module_infra_grid

Library to communicate with Infra Grid Module with Panasonic AMG8833 Grid-EYE sensor. More...

Typedefs

typedef struct
bc_module_infra_grid_t 
bc_module_infra_grid_t
 Infra Grid Module instance.
 

Enumerations

enum  bc_module_infra_grid_event_t {
  BC_MODULE_INFRA_GRID_EVENT_ERROR = 0,
  BC_MODULE_INFRA_GRID_EVENT_UPDATE = 1
}
 Callback events. More...
 
enum  bc_module_infra_grid_revision_t {
  BC_MODULE_INFRA_GRID_REVISION_R1_0 = 0,
  BC_MODULE_INFRA_GRID_REVISION_R1_1 = 1
}
 Infragrid Module Revision. More...
 

Functions

void bc_module_infra_grid_init (bc_module_infra_grid_t *self)
 Initialize Infra Grid Module. More...
 
void bc_module_infra_grid_set_event_handler (bc_module_infra_grid_t *self, void(*event_handler)(bc_module_infra_grid_t *, bc_module_infra_grid_event_t, void *), void *event_param)
 Set callback function. More...
 
void bc_module_infra_grid_set_update_interval (bc_module_infra_grid_t *self, bc_tick_t interval)
 Set measurement interval. More...
 
bool bc_module_infra_grid_measure (bc_module_infra_grid_t *self)
 Start measurement manually. More...
 
bool bc_module_infra_grid_read_values (bc_module_infra_grid_t *self)
 Read measured data from sensor to the buffer. More...
 
bool bc_module_infra_grid_get_temperatures_celsius (bc_module_infra_grid_t *self, float *values)
 Get measured temperature in degrees of Celsius as a array of float numbers. More...
 
float bc_module_infra_grid_read_thermistor (bc_module_infra_grid_t *self)
 Read and return thermistor temperature sensor value. More...
 
bc_module_infra_grid_revision_t bc_module_infra_grid_get_revision (bc_module_infra_grid_t *self)
 Get module revision. More...
 

Detailed Description

Library to communicate with Infra Grid Module with Panasonic AMG8833 Grid-EYE sensor.

Enumeration Type Documentation

Callback events.

Enumerator
BC_MODULE_INFRA_GRID_EVENT_ERROR 

Error event.

BC_MODULE_INFRA_GRID_EVENT_UPDATE 

Update event.

Definition at line 14 of file bc_module_infra_grid.h.

Infragrid Module Revision.

Enumerator
BC_MODULE_INFRA_GRID_REVISION_R1_0 

Revision 1.0.

BC_MODULE_INFRA_GRID_REVISION_R1_1 

Revision 1.1.

Definition at line 30 of file bc_module_infra_grid.h.

Function Documentation

bc_module_infra_grid_revision_t bc_module_infra_grid_get_revision ( bc_module_infra_grid_t self)

Get module revision.

Parameters
[in]selfInstance
Returns
module revision

Definition at line 415 of file bc_module_infra_grid.c.

bool bc_module_infra_grid_get_temperatures_celsius ( bc_module_infra_grid_t self,
float *  values 
)

Get measured temperature in degrees of Celsius as a array of float numbers.

Parameters
[in]selfInstance
[out]valuesPointer to float array of size 64 where result will be stored

Definition at line 120 of file bc_module_infra_grid.c.

void bc_module_infra_grid_init ( bc_module_infra_grid_t self)

Initialize Infra Grid Module.

Parameters
[in]selfInstance

Definition at line 42 of file bc_module_infra_grid.c.

Here is the call graph for this function:

bool bc_module_infra_grid_measure ( bc_module_infra_grid_t self)

Start measurement manually.

Parameters
[in]selfInstance
Returns
true On success
false When other measurement is in progress

Definition at line 83 of file bc_module_infra_grid.c.

Referenced by bc_module_infra_grid_set_update_interval().

Here is the call graph for this function:

Here is the caller graph for this function:

float bc_module_infra_grid_read_thermistor ( bc_module_infra_grid_t self)

Read and return thermistor temperature sensor value.

Parameters
[in]selfInstance
Returns
value in degreen of Celsius

Definition at line 97 of file bc_module_infra_grid.c.

Here is the call graph for this function:

bool bc_module_infra_grid_read_values ( bc_module_infra_grid_t self)

Read measured data from sensor to the buffer.

Parameters
[in]selfInstance
Returns
true When values are valid
false When values are invalid

Definition at line 108 of file bc_module_infra_grid.c.

Here is the call graph for this function:

void bc_module_infra_grid_set_event_handler ( bc_module_infra_grid_t self,
void(*)(bc_module_infra_grid_t *, bc_module_infra_grid_event_t, void *)  event_handler,
void *  event_param 
)

Set callback function.

Parameters
[in]selfInstance
[in]event_handlerFunction address
[in]event_paramOptional event parameter (can be NULL)

Definition at line 57 of file bc_module_infra_grid.c.

void bc_module_infra_grid_set_update_interval ( bc_module_infra_grid_t self,
bc_tick_t  interval 
)

Set measurement interval.

Parameters
[in]selfInstance
[in]intervalMeasurement interval

Definition at line 63 of file bc_module_infra_grid.c.

Here is the call graph for this function: