irthermo3
2.0.0.0
|
Functions | |
void | irthermo3_cfg_setup (irthermo3_cfg_t *cfg) |
Config Object Initialization function. More... | |
IRTHERMO3_RETVAL | irthermo3_init (irthermo3_t *ctx, irthermo3_cfg_t *cfg) |
Initialization function. More... | |
void | irthermo3_default_cfg (irthermo3_t *ctx) |
Click Default Configuration function. More... | |
void | irthermo3_generic_write (irthermo3_t *ctx, uint16_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | irthermo3_generic_read (irthermo3_t *ctx, uint16_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
void | irthermo3_write_u16 (irthermo3_t *ctx, uint16_t reg, uint16_t wr_data) |
Write u16 data function. More... | |
int16_t | irthermo3_read_i16 (irthermo3_t *ctx, uint16_t reg) |
Read i16 dat function. More... | |
int32_t | irthermo3_read_i32 (irthermo3_t *ctx, uint16_t reg) |
Read i32 dat function. More... | |
void | irthermo3_global_write (irthermo3_t *ctx, uint8_t *data_buf, uint8_t len) |
Global write function. More... | |
void | irthermo3_set_mode (irthermo3_t *ctx, uint8_t mode) |
Set device mode function. More... | |
void | irthermo3_cal (irthermo3_t *ctx) |
Calibration function. More... | |
float | irthermo3_get_ambient_temperature (irthermo3_t *ctx) |
Read Ambient Temperature function. More... | |
float | irthermo3_get_object_temperature (irthermo3_t *ctx) |
Read Object Temperature function. More... | |
void irthermo3_cal | ( | irthermo3_t * | ctx | ) |
Calibration function.
ctx | Click object. |
@description Function is used to calibrate the device.
void irthermo3_cfg_setup | ( | irthermo3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void irthermo3_default_cfg | ( | irthermo3_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for IrThermo3 click.
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 |
@description 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. |
@description This function writes data to the desired register.
float irthermo3_get_ambient_temperature | ( | irthermo3_t * | ctx | ) |
Read Ambient Temperature function.
- | Ambient temperature. |
@description Function is used to read ambient temperature.
float irthermo3_get_object_temperature | ( | irthermo3_t * | ctx | ) |
Read Object Temperature function.
- | Object temperature. |
@description Function is used to read object temperature.
void irthermo3_global_write | ( | irthermo3_t * | ctx, |
uint8_t * | data_buf, | ||
uint8_t | len | ||
) |
Global write function.
ctx | Click object. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the addressed device.
IRTHERMO3_RETVAL irthermo3_init | ( | irthermo3_t * | ctx, |
irthermo3_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.
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. |
@description 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. |
@description 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. |
@description 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. |
@description This function writes data to the desired register.