Device driver interface for the Atmel IO1 Xplained extension. More...
Device driver interface for the Atmel IO1 Xplained extension.
This board contains several sensors and actuators:
This board can be used with the following Atmel evaluation boards:
See the datasheet for more information
This driver provides [S]ensor [A]ctuator [U]ber [L]ayer capabilities.
Files | |
| file | io1_xplained.h |
| Device driver interface for the Atmel IO1 Xplained extension. | |
| file | io1_xplained_internals.h |
| Internal addresses, constants for the IO1 Xplained extension. | |
| file | io1_xplained_params.h |
| Default configuration for IO1 Xplained. | |
Data Structures | |
| struct | io1_xplained_params_t |
| Device initialization parameters. More... | |
| struct | io1_xplained_t |
| Device descriptor for the IO1 Xplained extension. More... | |
Enumerations | |
| enum | { IO1_XPLAINED_OK = 0 , IO1_XPLAINED_NOTEMP , IO1_XPLAINED_NOSDCARD , IO1_XPLAINED_NOLIGHT , IO1_XPLAINED_NOLED , IO1_XPLAINED_NOGPIO1 , IO1_XPLAINED_NOGPIO2 , IO1_XPLAINED_READ_OK , IO1_XPLAINED_READ_ERR } |
| IO1 Xplained driver return codes. More... | |
Functions | |
| int | io1_xplained_init (io1_xplained_t *dev, const io1_xplained_params_t *params) |
| Initialize the given IO1 Xplained extension. More... | |
| int | io1_xplained_read_light_level (uint16_t *light) |
| Read light sensor level on the IO1 Xplained extension. More... | |
| anonymous enum |
IO1 Xplained driver return codes.
Definition at line 53 of file io1_xplained.h.
| int io1_xplained_init | ( | io1_xplained_t * | dev, |
| const io1_xplained_params_t * | params | ||
| ) |
Initialize the given IO1 Xplained extension.
| [out] | dev | Initialized device descriptor of IO1 Xplained extension |
| [in] | params | Device initialization parameters |
| int io1_xplained_read_light_level | ( | uint16_t * | light | ) |
Read light sensor level on the IO1 Xplained extension.
| [out] | light | Light level value (between 0 and 1023) |