temphum6 2.0.0.0
|
Functions | |
void | temphum6_cfg_setup (temphum6_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM6_RETVAL | temphum6_init (temphum6_t *ctx, temphum6_cfg_t *cfg) |
Initialization function. | |
void | temphum6_generic_write (temphum6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum6_generic_read (temphum6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | temphum6_reset (temphum6_t *ctx) |
Functions for reset device. | |
uint16_t | temphum6_get_part_id (temphum6_t *ctx) |
Functions for get device PART ID. | |
void | temphum6_run (temphum6_t *ctx) |
Functions for RUN measurement. | |
float | temphum6_read_temperature (temphum6_t *ctx, uint8_t temp_in) |
Functions for read Temperature data. | |
float | temphum6_read_relative_huminidy (temphum6_t *ctx) |
Functions for read Relative Huminidy data. | |
void temphum6_cfg_setup | ( | temphum6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void temphum6_generic_read | ( | temphum6_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 temphum6_generic_write | ( | temphum6_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 temphum6_get_part_id | ( | temphum6_t * | ctx | ) |
Functions for get device PART ID.
ctx | Click object. |
@description This function returns the device part id.
TEMPHUM6_RETVAL temphum6_init | ( | temphum6_t * | ctx, |
temphum6_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.
float temphum6_read_relative_huminidy | ( | temphum6_t * | ctx | ) |
Functions for read Relative Huminidy data.
ctx | Click object. |
@description This function returns read relative Humidity data.
float temphum6_read_temperature | ( | temphum6_t * | ctx, |
uint8_t | temp_in ) |
Functions for read Temperature data.
ctx | Click object. |
temp_in | Temperature in ... (FAHRENHEIT, KELVIN, CELSIUS) |
@description This function returns read Temperature data.
void temphum6_reset | ( | temphum6_t * | ctx | ) |
Functions for reset device.
ctx | Click object. |
@description This functions resets the device.
void temphum6_run | ( | temphum6_t * | ctx | ) |
Functions for RUN measurement.
ctx | Click object. |
@description The function sets the registers _TEMPHUM6_REG_SENS_RUN and _TEMPHUM6_REG_SENS_START.
RUN : ( _TEMPHUM6_HUM_RUN_SINGLE_SHOT_MODE | _TEMPHUM6_TEMP_RUN_SINGLE_SHOT_MODE ) START : ( _TEMPHUM6_HUM_START_MEASUREMENT | _TEMPHUM6_TEMP_START_MEASUREMENT )