hdc1000 2.0.0.0
|
Functions | |
void | hdc1000_cfg_setup (hdc1000_cfg_t *cfg) |
Config Object Initialization function. | |
HDC1000_RETVAL | hdc1000_init (hdc1000_t *ctx, hdc1000_cfg_t *cfg) |
Initialization function. | |
void | hdc1000_default_cfg (hdc1000_t *ctx) |
Click Default Configuration function. | |
void | hdc1000_generic_write (hdc1000_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | hdc1000_generic_read (hdc1000_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | hdc1000_get_temperature_data (hdc1000_t *ctx) |
Get temperature value. | |
float | hdc1000_get_humidity_data (hdc1000_t *ctx) |
Get humidity value. | |
uint8_t | hdc1000_get_interrupt (hdc1000_t *ctx) |
Get interrupt state. | |
void hdc1000_cfg_setup | ( | hdc1000_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void hdc1000_default_cfg | ( | hdc1000_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for HDC1000 click.
HDC1000_CONFIG -------------------------------------- HDC1000_BOTH_TEMP_HUMI | HDC1000_TEMP_HUMI_14BIT
void hdc1000_generic_read | ( | hdc1000_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 hdc1000_generic_write | ( | hdc1000_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.
float hdc1000_get_humidity_data | ( | hdc1000_t * | ctx | ) |
Get humidity value.
ctx | Click object. |
@description This function gets humidity data from the HDC1000 sensor.
uint8_t hdc1000_get_interrupt | ( | hdc1000_t * | ctx | ) |
Get interrupt state.
ctx | Click object. |
0 : Not active.
1 : Active.
@description This function gets states of the RDY ( INT ) pin of the HDC1000 sensor.
float hdc1000_get_temperature_data | ( | hdc1000_t * | ctx | ) |
Get temperature value.
ctx | Click object. |
@description This function gets temperature data from the HDC1000 sensor.
HDC1000_RETVAL hdc1000_init | ( | hdc1000_t * | ctx, |
hdc1000_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.