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 #include "sdcard_spi.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
52 enum {
62 };
63 
67 typedef struct {
68  uint8_t addr;
70 
74 typedef struct {
79 
94 
103 int io1_xplained_read_light_level(uint16_t *light);
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif /* IO1_XPLAINED_H */
110 
Error when reading light sensor.
Definition: io1_xplained.h:61
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:74
at30tse75x_t temp
On-board temperature sensor.
Definition: io1_xplained.h:76
Error during sdcard initialization.
Definition: io1_xplained.h:55
Device initialization parameters.
Definition: io1_xplained.h:67
int io1_xplained_read_light_level(uint16_t *light)
Read light sensor level on the IO1 Xplained extension.
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
Initialization successful.
Definition: io1_xplained.h:53
Error during temperature sensor initialization.
Definition: io1_xplained.h:54
Error during extension GPIO2 initialization.
Definition: io1_xplained.h:59
Public interface for the sdcard_spi driver.
Light sensor read successful.
Definition: io1_xplained.h:60
Error during light sensor (ADC) initialization.
Definition: io1_xplained.h:56
io1_xplained_params_t params
Initialization parameters.
Definition: io1_xplained.h:75
uint8_t addr
extension custom address
Definition: io1_xplained.h:68
Error during extension LED initialization.
Definition: io1_xplained.h:57
Error during extension GPIO1 initialization.
Definition: io1_xplained.h:58
sdcard_spi_t sdcard
On-board SD card.
Definition: io1_xplained.h:77
int io1_xplained_init(io1_xplained_t *dev, const io1_xplained_params_t *params)
Initialize the given IO1 Xplained extension.
Device descriptor for sdcard_spi.
Definition: sdcard_spi.h:187