thermo7 2.0.0.0
|
Functions | |
void | thermo7_cfg_setup (thermo7_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO7_RETVAL | thermo7_init (thermo7_t *ctx, thermo7_cfg_t *cfg) |
Initialization function. | |
void | thermo7_generic_write (thermo7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | thermo7_generic_read (thermo7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | thermo7_read_ambient_temperature (thermo7_t *ctx) |
Functions for reads ambient temperature. | |
void | thermo7_set_configuration (thermo7_t *ctx, uint8_t configuration) |
Functions for configuration chip and measurement. | |
int16_t | thermo7_get_hysteresis_temperature (thermo7_t *ctx) |
Functions for reads Hysteresis Temperature. | |
void | thermo7_set_hysteresis_temperature (thermo7_t *ctx, int8_t temperature) |
Functions for settings Hysteresis Temperature. | |
int16_t | thermo7_get_limit_temperature (thermo7_t *ctx) |
Functions for get Limit Temperature. | |
void | thermo7_set_limit_temperature (thermo7_t *ctx, int16_t temperature) |
Functions for settings limit Temperature. | |
uint8_t | thermo7_get_interrupt (thermo7_t *ctx) |
Functions for reads state of interrupt pins. | |
void | thermo7_set_resolution (thermo7_t *ctx, uint8_t resolution) |
Functions for settings ADC resolution measurement. | |
void thermo7_cfg_setup | ( | thermo7_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void thermo7_generic_read | ( | thermo7_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 thermo7_generic_write | ( | thermo7_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.
int16_t thermo7_get_hysteresis_temperature | ( | thermo7_t * | ctx | ) |
Functions for reads Hysteresis Temperature.
ctx | Click object. |
@description This fuction gets Hysteresis Temperature.
uint8_t thermo7_get_interrupt | ( | thermo7_t * | ctx | ) |
Functions for reads state of interrupt pins.
ctx | Click object. |
@description This fuction reads state of interrupt pins.
int16_t thermo7_get_limit_temperature | ( | thermo7_t * | ctx | ) |
Functions for get Limit Temperature.
ctx | Click object. |
@description This function gets limit temperature.
THERMO7_RETVAL thermo7_init | ( | thermo7_t * | ctx, |
thermo7_cfg_t * | cfg ) |
Initialization function.
thermo7 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float thermo7_read_ambient_temperature | ( | thermo7_t * | ctx | ) |
Functions for reads ambient temperature.
ctx | Click object. |
@description Temperature register that contains 9-bit to 12-bit temperature data. ( 0.5�C to 0.0625�C resolutions, respectively ) The lower limit of reading the temperature is -55 �C and the upper limit is 125 �C.
void thermo7_set_configuration | ( | thermo7_t * | ctx, |
uint8_t | configuration ) |
Functions for configuration chip and measurement.
ctx | Click object. |
reg | Data which be written in configuration register. |
@description Options for configuration: ONE-SHOT ( Enable or Disable ), ADC RESOLUTION ( 9bit - 0.5 C, 10bit - 0.25 C, 11bit - 0.125 C or 12bit - 0.0625 C) FAULT QUEUE ( 1, 2, 4 or 6 ) ALERT POLARITY ( Active HIGH or LOW ) COMP/INT ( Interrupt mode or Comparator mode ) SHUTDOWN ( Enable or Disable )
Power - up default: ONE-SHOT ( Disable ), ADC RESOLUTION ( 9bit - 0.5 �C ) FAULT QUEUE ( 1 ) ALERT POLARITY ( Active LOW ) COMP/INT ( Comparator mode ) SHUTDOWN ( Disable )
void thermo7_set_hysteresis_temperature | ( | thermo7_t * | ctx, |
int8_t | temperature ) |
Functions for settings Hysteresis Temperature.
ctx | Click object. |
temperature | Data which be written in Hysteresis register. |
@description This register is used to set a hysteresis for the Temperature set Limit. Therefore, the data represents a minimum temperature limit. The power-up default value of THYST register is 75�C.
void thermo7_set_limit_temperature | ( | thermo7_t * | ctx, |
int16_t | temperature ) |
Functions for settings limit Temperature.
ctx | Click object. |
@description This fuction sets limit temperature.
void thermo7_set_resolution | ( | thermo7_t * | ctx, |
uint8_t | resolution ) |
Functions for settings ADC resolution measurement.
ctx | Click object. |
resolution | Resolution which be written in configuration register. |
@description Options for configuration: ADC RESOLUTION: 9bit - 0.5 C ( Power-up default ), 10bit - 0.25 C, 11bit - 0.125 C, 12bit - 0.0625 C