presence 2.0.0.0
|
Functions | |
void | presence_cfg_setup (presence_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | presence_init (presence_t *ctx, presence_cfg_t *cfg) |
Initialization function. | |
err_t | presence_default_cfg (presence_t *ctx) |
Presence default configuration function. | |
err_t | presence_generic_write (presence_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
err_t | presence_generic_read (presence_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | presence_get_int_state (presence_t *ctx) |
Get interrupt state function. | |
void | presence_general_call_addr (presence_t *ctx) |
General call address. | |
err_t | presence_eeprom_process (presence_t *ctx) |
EEPRM PROCESS. | |
float | presence_get_calib_constants (presence_t *ctx) |
Calibration constant K. | |
err_t | presence_ambient_temperature (presence_t *ctx, float *temperature) |
Ambient Temperature. | |
err_t | presence_object_temperature (presence_t *ctx, float *temperature) |
Object Temperature. | |
err_t presence_ambient_temperature | ( | presence_t * | ctx, |
float * | temperature ) |
Ambient Temperature.
ctx | Click object. |
temperature | Temperaure in C |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.void presence_cfg_setup | ( | presence_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
err_t presence_default_cfg | ( | presence_t * | ctx | ) |
Presence default configuration function.
This function executes a default configuration of Presence click board.
[in] | ctx | : Click context object. See presence_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t presence_eeprom_process | ( | presence_t * | ctx | ) |
EEPRM PROCESS.
ctx | Click object. |
This Function enables , read and dsiables the eeprom and then checks whether or not it as successfully read any data from it.
void presence_general_call_addr | ( | presence_t * | ctx | ) |
General call address.
ctx | Click object. |
This function writes general call address and sets slave address.
err_t presence_generic_read | ( | presence_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 |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.err_t presence_generic_write | ( | presence_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. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.float presence_get_calib_constants | ( | presence_t * | ctx | ) |
Calibration constant K.
ctx | Click object. |
This function returns calbration constant's K value.
uint8_t presence_get_int_state | ( | presence_t * | ctx | ) |
Get interrupt state function.
ctx | Click object. |
This function reads state from int pin.
err_t presence_init | ( | presence_t * | ctx, |
presence_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
err_t presence_object_temperature | ( | presence_t * | ctx, |
float * | temperature ) |
Object Temperature.
ctx | Click object. |
temperature | Temperaure in C |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.