|
ChibiOS/RT
2.5.1 |
EXT Driver macros and structures.
Definition in file ext.h.
#include "ext_lld.h"Go to the source code of this file.
Functions | |
| void | extInit (void) |
| EXT Driver initialization. | |
| void | extObjectInit (EXTDriver *extp) |
Initializes the standard part of a EXTDriver structure. | |
| void | extStart (EXTDriver *extp, const EXTConfig *config) |
| Configures and activates the EXT peripheral. | |
| void | extStop (EXTDriver *extp) |
| Deactivates the EXT peripheral. | |
| void | extChannelEnable (EXTDriver *extp, expchannel_t channel) |
| Enables an EXT channel. | |
| void | extChannelDisable (EXTDriver *extp, expchannel_t channel) |
| Disables an EXT channel. | |
| void | extSetChannelModeI (EXTDriver *extp, expchannel_t channel, const EXTChannelConfig *extcp) |
| Changes the operation mode of a channel. | |
Defines | |
EXT channel modes | |
| #define | EXT_CH_MODE_EDGES_MASK 3 |
| Mask of edges field. | |
| #define | EXT_CH_MODE_DISABLED 0 |
| Channel disabled. | |
| #define | EXT_CH_MODE_RISING_EDGE 1 |
| Rising edge callback. | |
| #define | EXT_CH_MODE_FALLING_EDGE 2 |
| Falling edge callback. | |
| #define | EXT_CH_MODE_BOTH_EDGES 3 |
| Both edges callback. | |
| #define | EXT_CH_MODE_AUTOSTART 4 |
| Channel started automatically on driver start. | |
Macro Functions | |
| #define | extChannelEnableI(extp, channel) ext_lld_channel_enable(extp, channel) |
| Enables an EXT channel. | |
| #define | extChannelDisableI(extp, channel) ext_lld_channel_disable(extp, channel) |
| Disables an EXT channel. | |
| #define | extSetChannelMode(extp, channel, extcp) |
| Changes the operation mode of a channel. | |
Typedefs | |
| typedef struct EXTDriver | EXTDriver |
| Type of a structure representing a EXT driver. | |
Enumerations | |
| enum | extstate_t { EXT_UNINIT = 0, EXT_STOP = 1, EXT_ACTIVE = 2 } |
| Driver state machine possible states. More... | |