thermo24
2.0.0.0
|
API for configuring and manipulating Thermo 24 Click driver. More...
Modules | |
Thermo 24 Commands List | |
List of commands of Thermo 24 Click driver. | |
Thermo 24 Registers Settings | |
Settings for registers of Thermo 24 Click driver. | |
Thermo 24 MikroBUS Map | |
MikroBUS pin mapping of Thermo 24 Click driver. | |
Functions | |
void | thermo24_cfg_setup (thermo24_cfg_t *cfg) |
Thermo 24 configuration object setup function. More... | |
err_t | thermo24_init (thermo24_t *ctx, thermo24_cfg_t *cfg) |
Thermo 24 initialization function. More... | |
err_t | thermo24_soft_reset (thermo24_t *ctx) |
Thermo 24 soft reset function. More... | |
err_t | thermo24_read_serial (thermo24_t *ctx, uint32_t *serial_num) |
Thermo 24 read serial function. More... | |
err_t | thermo24_read_temperature (thermo24_t *ctx, uint8_t precision, float *temperature) |
Thermo 24 read temperature function. More... | |
API for configuring and manipulating Thermo 24 Click driver.
void thermo24_cfg_setup | ( | thermo24_cfg_t * | cfg | ) |
Thermo 24 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See thermo24_cfg_t object definition for detailed explanation. |
err_t thermo24_init | ( | thermo24_t * | ctx, |
thermo24_cfg_t * | cfg | ||
) |
Thermo 24 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See thermo24_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See thermo24_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t thermo24_read_serial | ( | thermo24_t * | ctx, |
uint32_t * | serial_num | ||
) |
Thermo 24 read serial function.
This function reads the 4-byte chip serial number by using I2C serial interface.
[in] | ctx | : Click context object. See thermo24_t object definition for detailed explanation. |
[out] | serial_num | : 4-byte unique chip serial number. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t thermo24_read_temperature | ( | thermo24_t * | ctx, |
uint8_t | precision, | ||
float * | temperature | ||
) |
Thermo 24 read temperature function.
This function reads the temperature in Celsius with the specified measurement precision.
[in] | ctx | : Click context object. See thermo24_t object definition for detailed explanation. |
[in] | precision | : Measurement precision
|
[out] | temperature | : Temperature in Celsius. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t thermo24_soft_reset | ( | thermo24_t * | ctx | ) |
Thermo 24 soft reset function.
This function performs the software reset by sending the soft reset command by using I2C serial interface.
[in] | ctx | : Click context object. See thermo24_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.