temphum4 2.0.0.0
|
Functions | |
void | temphum4_cfg_setup (temphum4_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM4_RETVAL | temphum4_init (temphum4_t *ctx, temphum4_cfg_t *cfg) |
Initialization function. | |
void | temphum4_default_cfg (temphum4_t *ctx) |
Click Default Configuration function. | |
void | temphum4_generic_write (temphum4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum4_generic_read (temphum4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | temphum4_set_mode (temphum4_t *ctx, uint8_t value) |
Set device mode function. | |
uint16_t | temphum4_get_manifacturer_id (temphum4_t *ctx) |
Get manufacturer's id. | |
uint16_t | temphum4_get_device_id (temphum4_t *ctx) |
Get device id. | |
void | temphum4_configuration (temphum4_t *ctx, uint16_t conf_data) |
Set device configuration function. | |
float | temphum4_get_temperature (temphum4_t *ctx) |
Get temperature function. | |
float | temphum4_get_humidity (temphum4_t *ctx) |
Get humidity function. | |
void temphum4_cfg_setup | ( | temphum4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void temphum4_configuration | ( | temphum4_t * | ctx, |
uint16_t | conf_data ) |
Set device configuration function.
ctx | Click object. |
conf_data | Configuration data values |
@description This function sets device configuration registers
void temphum4_default_cfg | ( | temphum4_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Temp&Hum4 click.
void temphum4_generic_read | ( | temphum4_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 temphum4_generic_write | ( | temphum4_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.
uint16_t temphum4_get_device_id | ( | temphum4_t * | ctx | ) |
Get device id.
ctx | Click object. |
@description This function gets device id from the device.
float temphum4_get_humidity | ( | temphum4_t * | ctx | ) |
Get humidity function.
ctx | Click object. |
@description This function reads humidity data from the module.
uint16_t temphum4_get_manifacturer_id | ( | temphum4_t * | ctx | ) |
Get manufacturer's id.
ctx | Click object. |
@description This function gets manifacturer's id from the device.
float temphum4_get_temperature | ( | temphum4_t * | ctx | ) |
Get temperature function.
ctx | Click object. |
@description This function reads temperature data from the module.
TEMPHUM4_RETVAL temphum4_init | ( | temphum4_t * | ctx, |
temphum4_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 temphum4_set_mode | ( | temphum4_t * | ctx, |
uint8_t | value ) |
Set device mode function.
ctx | Click object. |
value | Device mode value. |
@description This function sets device mode.