Go to the source code of this file.
|
| enum | channelType_t {
TYPE_FREE,
TYPE_PWMINPUT,
TYPE_PPMINPUT,
TYPE_PWMOUTPUT_MOTOR,
TYPE_PWMOUTPUT_FAST,
TYPE_PWMOUTPUT_SERVO,
TYPE_SOFTSERIAL_RX,
TYPE_SOFTSERIAL_TX,
TYPE_SOFTSERIAL_RXTX,
TYPE_SOFTSERIAL_AUXTIMER,
TYPE_ADC,
TYPE_SERIAL_RX,
TYPE_SERIAL_TX,
TYPE_SERIAL_RXTX,
TYPE_TIMER
} |
| |
|
| void | timerConfigure (const timerHardware_t *timHw, uint16_t period, uint8_t mhz) |
| |
| void | timerChConfigIC (const timerHardware_t *timHw, bool polarityRising, unsigned inputFilterSamples) |
| |
| void | timerChConfigICDual (const timerHardware_t *timHw, bool polarityRising, unsigned inputFilterSamples) |
| |
| void | timerChICPolarity (const timerHardware_t *timHw, bool polarityRising) |
| |
| volatile timCCR_t * | timerChCCR (const timerHardware_t *timHw) |
| |
| volatile timCCR_t * | timerChCCRLo (const timerHardware_t *timHw) |
| |
| volatile timCCR_t * | timerChCCRHi (const timerHardware_t *timHw) |
| |
| void | timerChConfigOC (const timerHardware_t *timHw, bool outEnable, bool stateHigh) |
| |
| void | timerChConfigGPIO (const timerHardware_t *timHw, GPIO_Mode mode) |
| |
| void | timerChCCHandlerInit (timerCCHandlerRec_t *self, timerCCHandlerCallback *fn) |
| |
| void | timerChOvrHandlerInit (timerOvrHandlerRec_t *self, timerOvrHandlerCallback *fn) |
| |
| void | timerChConfigCallbacks (const timerHardware_t *channel, timerCCHandlerRec_t *edgeCallback, timerOvrHandlerRec_t *overflowCallback) |
| |
| void | timerChConfigCallbacksDual (const timerHardware_t *channel, timerCCHandlerRec_t *edgeCallbackLo, timerCCHandlerRec_t *edgeCallbackHi, timerOvrHandlerRec_t *overflowCallback) |
| |
| void | timerChITConfigDualLo (const timerHardware_t *timHw, FunctionalState newState) |
| |
| void | timerChITConfig (const timerHardware_t *timHw, FunctionalState newState) |
| |
| void | timerChClearCCFlag (const timerHardware_t *timHw) |
| |
| void | timerChInit (const timerHardware_t *timHw, channelType_t type, int irqPriority) |
| |
| void | timerInit (void) |
| |
| void | timerStart (void) |
| |
| void | timerForceOverflow (TIM_TypeDef *tim) |
| |
| void | configTimeBase (TIM_TypeDef *tim, uint16_t period, uint8_t mhz) |
| |
| #define USABLE_TIMER_CHANNEL_COUNT 14 |
| Enumerator |
|---|
| TYPE_FREE |
|
| TYPE_PWMINPUT |
|
| TYPE_PPMINPUT |
|
| TYPE_PWMOUTPUT_MOTOR |
|
| TYPE_PWMOUTPUT_FAST |
|
| TYPE_PWMOUTPUT_SERVO |
|
| TYPE_SOFTSERIAL_RX |
|
| TYPE_SOFTSERIAL_TX |
|
| TYPE_SOFTSERIAL_RXTX |
|
| TYPE_SOFTSERIAL_AUXTIMER |
|
| TYPE_ADC |
|
| TYPE_SERIAL_RX |
|
| TYPE_SERIAL_TX |
|
| TYPE_SERIAL_RXTX |
|
| TYPE_TIMER |
|
| void configTimeBase |
( |
TIM_TypeDef * |
tim, |
|
|
uint16_t |
period, |
|
|
uint8_t |
mhz |
|
) |
| |
| void timerChConfigIC |
( |
const timerHardware_t * |
timHw, |
|
|
bool |
polarityRising, |
|
|
unsigned |
inputFilterSamples |
|
) |
| |
| void timerChConfigICDual |
( |
const timerHardware_t * |
timHw, |
|
|
bool |
polarityRising, |
|
|
unsigned |
inputFilterSamples |
|
) |
| |
| void timerChConfigOC |
( |
const timerHardware_t * |
timHw, |
|
|
bool |
outEnable, |
|
|
bool |
stateHigh |
|
) |
| |
| void timerChICPolarity |
( |
const timerHardware_t * |
timHw, |
|
|
bool |
polarityRising |
|
) |
| |
| void timerConfigure |
( |
const timerHardware_t * |
timHw, |
|
|
uint16_t |
period, |
|
|
uint8_t |
mhz |
|
) |
| |
Force an overflow for a given timer. Saves the current value of the counter in the relevant timerConfig's forcedOverflowTimerValue variable.
- Parameters
-
| TIM_Typedef | *tim The timer to overflow |
- Returns
- void