|
enum | thermo28_return_value_t { THERMO28_OK = 0
, THERMO28_ERROR = -1
} |
| Thermo 28 Click return value data. More...
|
|
enum | thermo28_conv_rate_t { THERMO28_CONV_RATE025 = 0x0000
, THERMO28_CONV_RATE1 = 0x0040
, THERMO28_CONV_RATE4 = 0x0080
, THERMO28_CONV_RATE8 = 0x00C0
} |
| Thermo 28 Click conversion rate value data. More...
|
|
enum | thermo28_device_mode_t { THERMO28_STATE_SLEEP = 0x0100
, THERMO28_STATE_ACTIVE = 0x0000
} |
| Thermo 28 Click sleep mode value data. More...
|
|
enum | thermo28_alert_mode_t { THERMO28_ALERT_INTERRUPT = 0x0200
, THERMO28_ALERT_COMPARATOR = 0x0000
} |
| Thermo 28 Click interrupt mode value data. More...
|
|
enum | thermo28_alert_polarity_t { THERMO28_ALERT_ACTIVE_LOW = 0x0000
, THERMO28_ALERT_ACTIVE_HIGH = 0x0400
} |
| Thermo 28 Click polarity of the alert output value data. More...
|
|
enum | thermo28_consec_faults_t { THERMO28_CONSEC_FAULTS1 = 0x0000
, THERMO28_CONSEC_FAULTS2 = 0x1000
, THERMO28_CONSEC_FAULTS3 = 0x2000
, THERMO28_CONSEC_FAULTS4 = 0x3000
} |
| Thermo 28 Click consecutive faults value data. More...
|
|
enum | thermo28_single_shot_t { THERMO28_SINGLE_SHOT_NO_CONVERSION = 0x0000
, THERMO28_SINGLE_SHOT_START_CONVERSION = 0x8000
} |
| Thermo 28 Click measurement mode value data. More...
|
|
|
void | thermo28_cfg_setup (thermo28_cfg_t *cfg) |
| Thermo 28 configuration object setup function.
|
|
err_t | thermo28_init (thermo28_t *ctx, thermo28_cfg_t *cfg) |
| Thermo 28 initialization function.
|
|
err_t | thermo28_default_cfg (thermo28_t *ctx) |
| Thermo 28 default configuration function.
|
|
err_t | thermo28_generic_write (thermo28_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| Thermo 28 I2C writing function.
|
|
err_t | thermo28_generic_read (thermo28_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| Thermo 28 I2C reading function.
|
|
err_t | thermo28_get_temperature (thermo28_t *ctx, float *temperature) |
| Thermo 28 get temperature function.
|
|
err_t | thermo28_set_alert_limits (thermo28_t *ctx, float alert_min, float alert_max) |
| Thermo 28 set alert limits function.
|
|
err_t | thermo28_set_config (thermo28_t *ctx, thermo28_config_t config) |
| Thermo 28 set configuration function.
|
|
err_t | thermo28_set_continuous_conversion (thermo28_t *ctx) |
| Thermo 28 set continuous conversion function.
|
|
err_t | thermo28_set_sleep_mode (thermo28_t *ctx) |
| Thermo 28 set device working mode function.
|
|
err_t | thermo28_set_trigger_single_shot (thermo28_t *ctx) |
| Thermo 28 set trigger single-shot function.
|
|
uint8_t | thermo28_get_int_pin (thermo28_t *ctx) |
| Thermo 28 set alert status function.
|
|
This file contains API for Thermo 28 Click Driver.