Sensor Platform API.
This module implements Atmel Sensor API platform interfaces for XMEGA and UC3 microcontrollers.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | SENSOR_START_DELAY_MSEC (50) /** Settling delay time (in milliseconds) */ |
Verify Board Support for the ASF Common Sensor Service. More... | |
#define | BUSIO_TYPE (BUS_TYPE_UNKNOWN) |
#define | BUSIO_SPEED (0) |
#define | BUSIO_OFFSET (0) |
#define | BUSIO_IF (*((int *)0)) |
#define | SENSOR_HAL_DESC(sensor_type, name) |
Functions | |
sensor_hal_t * | sensor_find (sensor_type_t type) |
Find a sensor hardware descriptor. More... | |
bool | sensor_irq_connect (uint32_t intr_pin, void(*handler)(volatile void *), void *arg) |
Install a sensor device interrupt handler. More... | |
sensor_hal_t * | sensor_list (size_t *dev_count) |
Fetch the sensor hardware descriptor list. More... | |
bool | sensor_platform_init (void) |
Initialize the Sensor Platform Hardware. More... | |
uint32_t | sensor_timestamp (void) |
This function returns the current timestamp counter value. More... | |
#define BUSIO_IF (*((int *)0)) |
Referenced by sensor_platform_init().
#define BUSIO_OFFSET (0) |
#define BUSIO_SPEED (0) |
Referenced by sensor_platform_init().
#define BUSIO_TYPE (BUS_TYPE_UNKNOWN) |
Sensor Bus Interface Implementations
Referenced by sensor_platform_init().
#define SENSOR_HAL_DESC | ( | sensor_type, | |
name | |||
) |
Sensor Hardware Descriptor Macro
Referenced by sensor_list().
#define SENSOR_START_DELAY_MSEC (50) /** Settling delay time (in milliseconds) */ |
Verify Board Support for the ASF Common Sensor Service.
The common sensor service requires board-specific configuration constants describing sensor devices, bus interfaces, I/O pin interfaces etc. for a particular hardware implementation. When a board is configured to provide the board hardware-specific details to the sensor service, the COMMON_SENSOR_PLATFORM configuration constant will be defined in the board-specific header file.
Sensor Platform Timing Definitions
Referenced by sensor_platform_init().