Loading...
Searching...
No Matches
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
48extern "C" {
49#endif
50
54enum {
64};
65
69typedef struct {
70 uint8_t addr;
72
81
96
105int io1_xplained_read_light_level(uint16_t *light);
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif /* IO1_XPLAINED_H */
Driver for the AT30TSE75x temperature sensor with serial EEPROM.
int io1_xplained_read_light_level(uint16_t *light)
Read light sensor level on the IO1 Xplained extension.
int io1_xplained_init(io1_xplained_t *dev, const io1_xplained_params_t *params)
Initialize the given IO1 Xplained extension.
@ IO1_XPLAINED_READ_ERR
Error when reading light sensor.
@ IO1_XPLAINED_NOLIGHT
Error during light sensor (ADC) initialization.
@ IO1_XPLAINED_NOLED
Error during extension LED initialization.
@ IO1_XPLAINED_NOSDCARD
Error during sdcard initialization.
@ IO1_XPLAINED_READ_OK
Light sensor read successful.
@ IO1_XPLAINED_OK
Initialization successful.
@ IO1_XPLAINED_NOTEMP
Error during temperature sensor initialization.
@ IO1_XPLAINED_NOGPIO1
Error during extension GPIO1 initialization.
@ IO1_XPLAINED_NOGPIO2
Error during extension GPIO2 initialization.
Public interface for the sdcard_spi driver.
Device descriptor for a AT30TSE75x device.
Definition at30tse75x.h:154
Device initialization parameters.
uint8_t addr
extension custom address
Device descriptor for the IO1 Xplained extension.
at30tse75x_t temp
On-board temperature sensor.
sdcard_spi_t sdcard
On-board SD card.
io1_xplained_params_t params
Initialization parameters.
Device descriptor for sdcard_spi.
Definition sdcard_spi.h:188
Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.