temphum3 2.0.0.0
|
Functions | |
void | temphum3_cfg_setup (temphum3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | temphum3_init (temphum3_t *ctx, temphum3_cfg_t *cfg) |
Initialization function. | |
void | temphum3_default_cfg (temphum3_t *ctx) |
Click Default Configuration function. | |
void | temphum3_generic_write (temphum3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum3_generic_read (temphum3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | temphum3_set_mode (temphum3_t *ctx, uint8_t value) |
Set measurement mode function. | |
void | temphum3_set_configuration (temphum3_t *ctx, uint8_t value) |
Set configuration function. | |
void | temphum3_set_measurement (temphum3_t *ctx, uint8_t value) |
Set measurement function. | |
float | temphum3_get_temperature (temphum3_t *ctx) |
Get temperature function. | |
float | temphum3_get_humidity (temphum3_t *ctx) |
Get humidity function. | |
uint16_t | temphum3_get_id (temphum3_t *ctx) |
Get ID function. | |
uint16_t | temphum3_get_manufacturer_id (temphum3_t *ctx) |
Get manufacturer's ID function. | |
uint8_t | temphum3_get_status_interrupt (temphum3_t *ctx, uint8_t mask) |
Get interrupt status function. | |
uint8_t | temphum3_get_interrupt_mask (temphum3_t *ctx, uint8_t mask) |
Get interrupt mask function. | |
void | temphum3_set_offset (temphum3_t *ctx, uint8_t reg, uint8_t value) |
Set offset function. | |
void | temphum3_set_high_temp (temphum3_t *ctx, uint8_t temp_data) |
Set high temperature function. | |
void | temphum3_set_low_temp (temphum3_t *ctx, uint8_t temp_data) |
Set low temperature function. | |
void | temphum3_set_high_hum (temphum3_t *ctx, uint8_t hum_data) |
Set high humidity function. | |
void | temphum3_set_low_hum (temphum3_t *ctx, uint8_t hum_data) |
Set low humidity function. | |
float | temphum3_get_max_hum (temphum3_t *ctx) |
Get maximum humidity function. | |
float | temphum3_get_max_temp (temphum3_t *ctx) |
Get maximum temperature function. | |
void temphum3_cfg_setup | ( | temphum3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void temphum3_default_cfg | ( | temphum3_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for TempHum3 click.
void temphum3_generic_read | ( | temphum3_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 |
This function reads data from the desired register.
void temphum3_generic_write | ( | temphum3_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. |
This function writes data to the desired register.
float temphum3_get_humidity | ( | temphum3_t * | ctx | ) |
Get humidity function.
ctx | Click object. |
This function returns humidity value
uint16_t temphum3_get_id | ( | temphum3_t * | ctx | ) |
Get ID function.
ctx | Click object. |
This function returns ID of the module
uint8_t temphum3_get_interrupt_mask | ( | temphum3_t * | ctx, |
uint8_t | mask ) |
Get interrupt mask function.
ctx | Click object. |
mask | Interrupt mask |
This function returns interrupt mask value
uint16_t temphum3_get_manufacturer_id | ( | temphum3_t * | ctx | ) |
Get manufacturer's ID function.
ctx | Click object. |
This function returns manufacturer's ID value
float temphum3_get_max_hum | ( | temphum3_t * | ctx | ) |
Get maximum humidity function.
ctx | Click object. |
This function gets the maximum humidity value
float temphum3_get_max_temp | ( | temphum3_t * | ctx | ) |
Get maximum temperature function.
ctx | Click object. |
This function gets the maximum temperature value
uint8_t temphum3_get_status_interrupt | ( | temphum3_t * | ctx, |
uint8_t | mask ) |
Get interrupt status function.
ctx | Click object. |
This function returns status of an interrupt
float temphum3_get_temperature | ( | temphum3_t * | ctx | ) |
Get temperature function.
ctx | Click object. |
This function returns temperature value
err_t temphum3_init | ( | temphum3_t * | ctx, |
temphum3_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void temphum3_set_configuration | ( | temphum3_t * | ctx, |
uint8_t | value ) |
Set configuration function.
ctx | Click object. |
value | Register address value |
This function configures the measurement values
void temphum3_set_high_hum | ( | temphum3_t * | ctx, |
uint8_t | hum_data ) |
Set high humidity function.
ctx | Click object. |
hum_data | Humidity data value |
This function sets the high humidity value
void temphum3_set_high_temp | ( | temphum3_t * | ctx, |
uint8_t | temp_data ) |
Set high temperature function.
ctx | Click object. |
temp_data | Temperature data value |
This function sets the high temperature value
void temphum3_set_low_hum | ( | temphum3_t * | ctx, |
uint8_t | hum_data ) |
Set low humidity function.
ctx | Click object. |
hum_data | Humidity data value |
This function sets high humidity value
void temphum3_set_low_temp | ( | temphum3_t * | ctx, |
uint8_t | temp_data ) |
Set low temperature function.
ctx | Click object. |
temp_data | Temperature data value |
This function sets the low temperature value
void temphum3_set_measurement | ( | temphum3_t * | ctx, |
uint8_t | value ) |
Set measurement function.
ctx | Click object. |
This function returns temperature value
void temphum3_set_mode | ( | temphum3_t * | ctx, |
uint8_t | value ) |
Set measurement mode function.
ctx | Click object. |
value | Register address value |
This function sets measurement mode
void temphum3_set_offset | ( | temphum3_t * | ctx, |
uint8_t | reg, | ||
uint8_t | value ) |
Set offset function.
ctx | Click object. |
reg | Registry value |
value | Buffer value |
This function sets value of a offset