Driver for jc42 compliant temperature sensors. More...
Driver for jc42 compliant temperature sensors.
Definition in file jc42.h.
Go to the source code of this file.
Data Structures | |
struct | jc42_t |
Device descriptor for a jc42 device. More... | |
struct | jc42_params_t |
Device initialization parameters. More... | |
Functions | |
int | jc42_init (jc42_t *dev, const jc42_params_t *params) |
Initialize a jc42 device. | |
int | jc42_get_config (const jc42_t *dev, uint16_t *data) |
Get content of configuration register. | |
int | jc42_set_config (const jc42_t *dev, uint16_t data) |
Set content of configuration register. | |
int | jc42_get_temperature (const jc42_t *dev, int16_t *temperature) |
Get measured temperature. | |
Variables | |
const saul_driver_t | jc42_temperature_saul_driver |
Export SAUL endpoint. | |
jc42 status return codes | |
#define | JC42_OK (0) |
#define | JC42_NOI2C (-1) |
#define | JC42_NODEV (-2) |