thermo9 2.0.0.0
|
Functions | |
void | thermo9_cfg_setup (thermo9_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO9_RETVAL | thermo9_init (thermo9_t *ctx, thermo9_cfg_t *cfg) |
Initialization function. | |
void | thermo9_generic_write (thermo9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | thermo9_generic_read (thermo9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | thermo9_send_cmd (thermo9_t *ctx, uint8_t cmd_byte) |
Send command function. | |
void | thermo9_calibation (thermo9_t *ctx) |
Calibration function. | |
float | thermo9_read_temp (thermo9_t *ctx) |
Read temperature function. | |
void thermo9_calibation | ( | thermo9_t * | ctx | ) |
Calibration function.
ctx | Click object. |
@description Function resets and calibrates the device in order for it to work properly.
void thermo9_cfg_setup | ( | thermo9_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void thermo9_generic_read | ( | thermo9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read 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 reads data from the desired register.
void thermo9_generic_write | ( | thermo9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function writes data to the desired register.
THERMO9_RETVAL thermo9_init | ( | thermo9_t * | ctx, |
thermo9_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 thermo9_read_temp | ( | thermo9_t * | ctx | ) |
Read temperature function.
ctx | Click object. |
@description Function is used to read temperature in degree centigrade.
void thermo9_send_cmd | ( | thermo9_t * | ctx, |
uint8_t | cmd_byte ) |
Send command function.
ctx | Click object. |
cmd_byte | Command Byte. |
@description Function is used to send the command to the device.