Driver for jc42 compliant temperature sensors. More...

Detailed Description

Koen Zandberg

Definition in file jc42.h.

#include "periph/i2c.h"
#include "saul.h"
+ Include dependency graph for 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...


jc42 status return codes
#define JC42_OK   (0)
#define JC42_NOI2C   (-1)
#define JC42_NODEV   (-2)


int jc42_init (jc42_t *dev, jc42_params_t *params)
 Initialize a jc42 device. More...
int jc42_get_config (const jc42_t *dev, uint16_t *data)
 Get content of configuration register. More...
int jc42_set_config (const jc42_t *dev, uint16_t data)
 Set content of configuration register. More...
int jc42_get_temperature (const jc42_t *dev, int16_t *temperature)
 Get measured temperature. More...


const saul_driver_t jc42_temperature_saul_driver
 export SAUL endpoint