Defines | |
#define | MIOS32_AIN_CHANNEL_MASK 0 |
#define | MIOS32_AIN_OVERSAMPLING_RATE 1 |
#define | MIOS32_AIN_DEADBAND 31 |
#define | MIOS32_AIN_DEADBAND_IDLE 127 |
#define | MIOS32_AIN_IDLE_CTR 3000 |
#define | MIOS32_AIN_MUX_PINS 0 |
#define | MIOS32_AIN_MUX0_PIN GPIO_Pin_4 |
#define | MIOS32_AIN_MUX0_PORT GPIOC |
#define | MIOS32_AIN_MUX1_PIN GPIO_Pin_5 |
#define | MIOS32_AIN_MUX1_PORT GPIOC |
#define | MIOS32_AIN_MUX2_PIN GPIO_Pin_0 |
#define | MIOS32_AIN_MUX2_PORT GPIOB |
Functions | |
s32 | MIOS32_AIN_Init (u32 mode) |
s32 | MIOS32_AIN_ServicePrepareCallback_Init (void *_service_prepare_callback) |
s32 | MIOS32_AIN_PinGet (u32 pin) |
s32 | MIOS32_AIN_DeadbandGet (void) |
s32 | MIOS32_AIN_DeadbandSet (u16 deadband) |
s32 | MIOS32_AIN_Handler (void *callback) |
s32 | MIOS32_AIN_StartConversions (void) |
#define MIOS32_AIN_CHANNEL_MASK 0 |
#define MIOS32_AIN_DEADBAND 31 |
#define MIOS32_AIN_DEADBAND_IDLE 127 |
#define MIOS32_AIN_IDLE_CTR 3000 |
#define MIOS32_AIN_MUX0_PIN GPIO_Pin_4 |
#define MIOS32_AIN_MUX0_PORT GPIOC |
#define MIOS32_AIN_MUX1_PIN GPIO_Pin_5 |
#define MIOS32_AIN_MUX1_PORT GPIOC |
#define MIOS32_AIN_MUX2_PIN GPIO_Pin_0 |
#define MIOS32_AIN_MUX2_PORT GPIOB |
#define MIOS32_AIN_MUX_PINS 0 |
#define MIOS32_AIN_OVERSAMPLING_RATE 1 |
Normally the ADC channels are converted each mS from the programming model (main.c) - optionally this can be skipped with define MIOS32_DONT_SERVICE_AIN 1 in mios32_config.h
In this case, the MIOS32_AIN_StartConversions() function has to be called periodically from the application (e.g. from a timer), and conversion values can be retrieved with MIOS32_AIN_PinGet()