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 
38 #ifndef IO1_XPLAINED_H
39 #define IO1_XPLAINED_H
40 
41 #include "saul.h"
42 #include "at30tse75x.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
51 enum {
59 };
60 
64 typedef struct {
65  uint8_t addr;
67 
71 typedef struct {
75 
89 
99 int io1_xplained_read_temperature(const io1_xplained_t *dev, float *temperature);
100 
104 void io1_xplained_set_led(void);
105 
109 void io1_xplained_clear_led(void);
110 
114 void io1_xplained_toggle_led(void);
115 
116 #ifdef __cplusplus
117 }
118 #endif
119 
120 #endif /* IO1_XPLAINED_H */
121 
Device descriptor for a AT30TSE75x device.
Definition: at30tse75x.h:155
Driver for the AT30TSE75x temperature sensor with serial EEPROM.
Device descriptor for the IO1 Xplained extension.
Definition: io1_xplained.h:71
Error during extension GPIO1 initialization.
Definition: io1_xplained.h:55
void io1_xplained_set_led(void)
Set the on-board led of the IO1 Xplained extension.
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:73
Error during extension LED initialization.
Definition: io1_xplained.h:54
Device initialization parameters.
Definition: io1_xplained.h:64
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
Initialization successful.
Definition: io1_xplained.h:52
Error during temperature sensor initialization.
Definition: io1_xplained.h:53
int io1_xplained_read_temperature(const io1_xplained_t *dev, float *temperature)
Read temperature value from the given IO1 Xplained extension, returned in °C.
Error when reading temperature sensor.
Definition: io1_xplained.h:58
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:72
uint8_t addr
extension custom address
Definition: io1_xplained.h:65
Temperature read successful.
Definition: io1_xplained.h:57
int io1_xplained_init(io1_xplained_t *dev, const io1_xplained_params_t *params)
Initialize the given IO1 Xplained extension.
Error during extension GPIO2 initialization.
Definition: io1_xplained.h:56