The friendly Operating System for the Internet of Things
io1_xplained.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef IO1_XPLAINED_H
22 #define IO1_XPLAINED_H
23 
24 #include "saul.h"
25 #include "at30tse75x.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 typedef struct {
35  at30tse75x_t temp ;
37 
38 
42 typedef struct {
43  uint8_t addr;
45 
56 void io1_xplained_auto_init(void);
57 
67 int io1_xplained_init(io1_xplained_t *dev, uint8_t addr);
68 
78 int io1_xplained_read_temperature(io1_xplained_t *dev, float *temperature);
79 
86 int io1_xplained_set_led(void);
87 
94 int io1_xplained_clear_led(void);
95 
102 int io1_xplained_toggle_led(void);
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif /* IO1_XPLAINED_H */
109 
Device descriptor for a AT30TSE75x device.
Definition: at30tse75x.h:160
Driver for the AT30TSE75x temperature sensor with serial EEPROM.
void io1_xplained_auto_init(void)
auto-initialize all configured IO1 Xplained extensions
Device descriptor for the IO1 Xplained extension.
Definition: io1_xplained.h:34
int io1_xplained_clear_led(void)
Clear the on-board led of the IO1 Xplained extension.
int io1_xplained_init(io1_xplained_t *dev, uint8_t addr)
Initialize the given IO1 Xplained extension.
int io1_xplained_set_led(void)
Set the on-board led of the IO1 Xplained extension.
Definition of the RIOT actuator/sensor interface.
Definition: saul.h:139
Device initialization parameters.
Definition: io1_xplained.h:42
int io1_xplained_toggle_led(void)
Toggle the on-board led of the IO1 Xplained extension.
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
int io1_xplained_read_temperature(io1_xplained_t *dev, float *temperature)
Read temperature value from the given IO1 Xplained extension, returned in °C.
const saul_driver_t io1_xplained_temperature_saul_driver
export SAUL endpoints
uint8_t addr
extension custom address
Definition: io1_xplained.h:43