Loading...
Searching...
No Matches

Driver for jc42 compliant temperature sensors. More...

Detailed Description

Driver for jc42 compliant temperature sensors.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net

Definition in file jc42.h.

#include "periph/i2c.h"
#include "saul.h"
+ Include dependency graph for jc42.h:
+ This graph shows which files directly or indirectly include this file:

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)