irthermo3 2.0.0.0
|
Functions | |
void | irthermo3_cfg_setup (irthermo3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | irthermo3_init (irthermo3_t *ctx, irthermo3_cfg_t *cfg) |
Initialization function. | |
void | irthermo3_generic_write (irthermo3_t *ctx, uint16_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | irthermo3_generic_read (irthermo3_t *ctx, uint16_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | irthermo3_write_u16 (irthermo3_t *ctx, uint16_t reg, uint16_t wr_data) |
Write u16 data function. | |
int16_t | irthermo3_read_i16 (irthermo3_t *ctx, uint16_t reg) |
Read i16 dat function. | |
int32_t | irthermo3_read_i32 (irthermo3_t *ctx, uint16_t reg) |
Read i32 dat function. | |
void | irthermo3_set_mode (irthermo3_t *ctx, uint8_t mode) |
Set device mode function. | |
void | irthermo3_cal (irthermo3_t *ctx) |
Calibration function. | |
float | irthermo3_get_ambient_temp (irthermo3_t *ctx) |
Read Ambient Temperature function. | |
float | irthermo3_get_object_temp (irthermo3_t *ctx) |
Read Object Temperature function. | |
void irthermo3_cal | ( | irthermo3_t * | ctx | ) |
Calibration function.
ctx | Click object. |
Function is used to calibrate the device.
void irthermo3_cfg_setup | ( | irthermo3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void irthermo3_generic_read | ( | irthermo3_t * | ctx, |
uint16_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 irthermo3_generic_write | ( | irthermo3_t * | ctx, |
uint16_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 irthermo3_get_ambient_temp | ( | irthermo3_t * | ctx | ) |
Read Ambient Temperature function.
- | Ambient temperature. |
Function is used to read ambient temperature.
float irthermo3_get_object_temp | ( | irthermo3_t * | ctx | ) |
Read Object Temperature function.
- | Object temperature. |
Function is used to read object temperature.
err_t irthermo3_init | ( | irthermo3_t * | ctx, |
irthermo3_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
int16_t irthermo3_read_i16 | ( | irthermo3_t * | ctx, |
uint16_t | reg ) |
Read i16 dat function.
ctx | Click object. |
reg | Register address. |
ret_val | two bytes signed data which is read from the address. |
This function reads signed data from the desired register.
int32_t irthermo3_read_i32 | ( | irthermo3_t * | ctx, |
uint16_t | reg ) |
Read i32 dat function.
ctx | Click object. |
reg | Register address. |
ret_val | four bytes signed data which is read from the address. |
This function reads signed data from the desired register.
void irthermo3_set_mode | ( | irthermo3_t * | ctx, |
uint8_t | mode ) |
Set device mode function.
ctx | Click object. |
mode | Mode to be set. |
This function is used to set the devices mode to sleep, step mode or continuous mode.
void irthermo3_write_u16 | ( | irthermo3_t * | ctx, |
uint16_t | reg, | ||
uint16_t | wr_data ) |
Write u16 data function.
ctx | Click object. |
reg | Register address. |
wr_data | Data to be written. |
This function writes data to the desired register.