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 enum {
42 };
43 
47 typedef struct {
48  uint8_t addr;
50 
54 typedef struct {
58 
72 
82 int io1_xplained_read_temperature(const io1_xplained_t *dev, float *temperature);
83 
87 void io1_xplained_set_led(void);
88 
92 void io1_xplained_clear_led(void);
93 
97 void io1_xplained_toggle_led(void);
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif /* IO1_XPLAINED_H */
104 
Device descriptor for a AT30TSE75x device.
Definition: at30tse75x.h:160
Driver for the AT30TSE75x temperature sensor with serial EEPROM.
Device descriptor for the IO1 Xplained extension.
Definition: io1_xplained.h:54
Error during extension GPIO2 initialization.
Definition: io1_xplained.h:39
void io1_xplained_set_led(void)
Set the on-board led of the IO1 Xplained extension.
Initialization successful.
Definition: io1_xplained.h:35
void io1_xplained_toggle_led(void)
Toggle the on-board led of the IO1 Xplained extension.
at30tse75x_t temp
On-board temperature sensor.
Definition: io1_xplained.h:56
Error during extension GPIO1 initialization.
Definition: io1_xplained.h:38
Device initialization parameters.
Definition: io1_xplained.h:47
Error when reading temperature sensor.
Definition: io1_xplained.h:41
Error during temperature sensor initialization.
Definition: io1_xplained.h:36
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
Temperature read successful.
Definition: io1_xplained.h:40
int io1_xplained_read_temperature(const io1_xplained_t *dev, float *temperature)
Read temperature value from the given IO1 Xplained extension, returned in °C.
void io1_xplained_clear_led(void)
Clear the on-board led of the IO1 Xplained extension.
io1_xplained_params_t params
Initialization parameters.
Definition: io1_xplained.h:55
uint8_t addr
extension custom address
Definition: io1_xplained.h:48
Error during extension LED initialization.
Definition: io1_xplained.h:37
int io1_xplained_init(io1_xplained_t *dev, const io1_xplained_params_t *params)
Initialize the given IO1 Xplained extension.