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 
40 #ifndef IO1_XPLAINED_H
41 #define IO1_XPLAINED_H
42 
43 #include "saul.h"
44 #include "at30tse75x.h"
45 #include "sdcard_spi.h"
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
54 enum {
64 };
65 
69 typedef struct {
70  uint8_t addr;
72 
76 typedef struct {
81 
96 
105 int io1_xplained_read_light_level(uint16_t *light);
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif /* IO1_XPLAINED_H */
112 
Device descriptor for a AT30TSE75x device.
Definition: at30tse75x.h:155
Driver for the AT30TSE75x temperature sensor with serial EEPROM.
Error during light sensor (ADC) initialization.
Definition: io1_xplained.h:58
Error during sdcard initialization.
Definition: io1_xplained.h:57
Device descriptor for the IO1 Xplained extension.
Definition: io1_xplained.h:76
Error when reading light sensor.
Definition: io1_xplained.h:63
at30tse75x_t temp
On-board temperature sensor.
Definition: io1_xplained.h:78
Error during extension GPIO2 initialization.
Definition: io1_xplained.h:61
Device initialization parameters.
Definition: io1_xplained.h:69
Initialization successful.
Definition: io1_xplained.h:55
int io1_xplained_read_light_level(uint16_t *light)
Read light sensor level on the IO1 Xplained extension.
Error during extension LED initialization.
Definition: io1_xplained.h:59
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
Error during temperature sensor initialization.
Definition: io1_xplained.h:56
Light sensor read successful.
Definition: io1_xplained.h:62
Public interface for the sdcard_spi driver.
Error during extension GPIO1 initialization.
Definition: io1_xplained.h:60
io1_xplained_params_t params
Initialization parameters.
Definition: io1_xplained.h:77
uint8_t addr
extension custom address
Definition: io1_xplained.h:70
sdcard_spi_t sdcard
On-board SD card.
Definition: io1_xplained.h:79
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