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 
IO1_XPLAINED_OK
@ IO1_XPLAINED_OK
Initialization successful.
Definition: io1_xplained.h:55
at30tse75x_t
Device descriptor for a AT30TSE75x device.
Definition: at30tse75x.h:155
IO1_XPLAINED_NOGPIO2
@ IO1_XPLAINED_NOGPIO2
Error during extension GPIO2 initialization.
Definition: io1_xplained.h:61
io1_xplained_t
Device descriptor for the IO1 Xplained extension.
Definition: io1_xplained.h:76
io1_xplained_params_t
Device initialization parameters.
Definition: io1_xplained.h:69
io1_xplained_t::temp
at30tse75x_t temp
On-board temperature sensor.
Definition: io1_xplained.h:78
IO1_XPLAINED_NOGPIO1
@ IO1_XPLAINED_NOGPIO1
Error during extension GPIO1 initialization.
Definition: io1_xplained.h:60
IO1_XPLAINED_NOSDCARD
@ IO1_XPLAINED_NOSDCARD
Error during sdcard initialization.
Definition: io1_xplained.h:57
io1_xplained_init
int io1_xplained_init(io1_xplained_t *dev, const io1_xplained_params_t *params)
Initialize the given IO1 Xplained extension.
io1_xplained_read_light_level
int io1_xplained_read_light_level(uint16_t *light)
Read light sensor level on the IO1 Xplained extension.
IO1_XPLAINED_NOLED
@ IO1_XPLAINED_NOLED
Error during extension LED initialization.
Definition: io1_xplained.h:59
at30tse75x.h
Driver for the AT30TSE75x temperature sensor with serial EEPROM.
sdcard_spi.h
Public interface for the sdcard_spi driver.
IO1_XPLAINED_NOLIGHT
@ IO1_XPLAINED_NOLIGHT
Error during light sensor (ADC) initialization.
Definition: io1_xplained.h:58
IO1_XPLAINED_NOTEMP
@ IO1_XPLAINED_NOTEMP
Error during temperature sensor initialization.
Definition: io1_xplained.h:56
io1_xplained_params_t::addr
uint8_t addr
extension custom address
Definition: io1_xplained.h:70
io1_xplained_t::params
io1_xplained_params_t params
Initialization parameters.
Definition: io1_xplained.h:77
IO1_XPLAINED_READ_OK
@ IO1_XPLAINED_READ_OK
Light sensor read successful.
Definition: io1_xplained.h:62
IO1_XPLAINED_READ_ERR
@ IO1_XPLAINED_READ_ERR
Error when reading light sensor.
Definition: io1_xplained.h:63
saul.h
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
sdcard_spi_t
Device descriptor for sdcard_spi.
Definition: sdcard_spi.h:187
io1_xplained_t::sdcard
sdcard_spi_t sdcard
On-board SD card.
Definition: io1_xplained.h:79