temphum7 2.0.0.0
|
Functions | |
void | temphum7_cfg_setup (temphum7_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM7_RETVAL | temphum7_init (temphum7_t *ctx, temphum7_cfg_t *cfg) |
Initialization function. | |
void | temphum7_default_cfg (temphum7_t *ctx) |
Click Default Configuration function. | |
void | temphum7_generic_write (temphum7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum7_generic_read (temphum7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | temphum7_get_relative_humidity (temphum7_t *ctx, uint8_t mode_data) |
Relative humidity. | |
float | temphum7_get_temperature (temphum7_t *ctx, uint8_t mode_data) |
Temerature. | |
void | temphum7_get_electronic_serial_number (temphum7_t *ctx, uint8_t *esn_buffer) |
Electronic serial number. | |
uint8_t | temphum7_get_firmware_revision (temphum7_t *ctx) |
Firmware revision. | |
float | temphum7_get_heater_current (temphum7_t *ctx) |
Heater current. | |
void | temphum7_reset (temphum7_t *ctx) |
Reset. | |
void temphum7_cfg_setup | ( | temphum7_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void temphum7_default_cfg | ( | temphum7_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for TempHum7 click.
Set register : TEMPHUM7_WRITE_RHT_USER_REGISTER_1 Data : TEMPHUM7_RESOLUTION_12_BIT
void temphum7_generic_read | ( | temphum7_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 temphum7_generic_write | ( | temphum7_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.
void temphum7_get_electronic_serial_number | ( | temphum7_t * | ctx, |
uint8_t * | esn_buffer ) |
Electronic serial number.
ctx | Click object. |
esn_buffer | Buffer. |
@description This function get electronical serial number.
uint8_t temphum7_get_firmware_revision | ( | temphum7_t * | ctx | ) |
Firmware revision.
ctx | Click object. |
@description This function get firmware revision.
float temphum7_get_heater_current | ( | temphum7_t * | ctx | ) |
Heater current.
ctx | Click object. |
@description This function get heater current.
float temphum7_get_relative_humidity | ( | temphum7_t * | ctx, |
uint8_t | mode_data ) |
Relative humidity.
ctx | Click object. |
mode_data | Mode data. |
@description This function get relative humidity.
float temphum7_get_temperature | ( | temphum7_t * | ctx, |
uint8_t | mode_data ) |
Temerature.
ctx | Click object. |
mode_data | Mode data. |
@description This function get temperature.
TEMPHUM7_RETVAL temphum7_init | ( | temphum7_t * | ctx, |
temphum7_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 temphum7_reset | ( | temphum7_t * | ctx | ) |
Reset.
ctx | Click object. |
@description This function is reset.