TIM interface for. More...
Data Structures | |
struct | TIM_CCMR_Output |
struct | TIM_Config |
TIM configuration struct. More... | |
struct | TIM_t |
Struct definition for TIM interface. Provides the interface for API consumers to interact with the TIM peripheral. More... | |
Functions | |
TIM_t | TIM_init (TIM_TypeDef *interface, TIM_Config *config) |
Initialiser for an SPI device interface. | |
void | TIM_startCounter (TIM_t *tim) |
void | TIM_updateConfig (TIM_t *tim, TIM_Config *config) |
Update TIM peripheral configuration. | |
bool | TIM_setTimingPWM (TIM_t *tim, TIM_Channel channel, float duty) |
bool | TIM_pollCompare (TIM_t *tim, TIM_Channel channel) |
bool | TIM_setTimingPeriod (TIM_t *tim, float period) |
bool | TIM_pollUpdate (TIM_t *tim) |
TIM interface for.
struct TIM_Config |
struct TIM_t |
Struct definition for TIM interface. Provides the interface for API consumers to interact with the TIM peripheral.
Data Fields | ||
---|---|---|
TIM_TypeDef * | interface | Pointer to TIM interface struct. |
TIM_Config | config | Configuration parameters for the TIM peripheral. |
void(*)(struct TIM *tim) | startCounter |
TIM configuration update method.
|
bool(*)(struct TIM *tim) | pollUpdate | |
bool(*)(struct TIM *tim, float period) | setTimingPeriod | |
bool(*)(struct TIM *tim, TIM_Channel channel) | pollCompare | |
bool(*)(struct TIM *tim, TIM_Channel channel, float duty) | setTimingPWM | |
void(*)(struct TIM *tim, TIM_Config *config) | updateConfig |
TIM configuration update method.
|
TIM_t TIM_init | ( | TIM_TypeDef * | interface, |
TIM_Config * | config ) |
Initialiser for an SPI device interface.
interface | Pointer to the SPI_TypeDef struct representing the SPI interface. |
config | Pointer to SPI_Config struct for initial configuration. This may be passed as NULL to initialise a default configuration. |
void TIM_updateConfig | ( | TIM_t * | tim, |
TIM_Config * | config ) |
bool TIM_setTimingPWM | ( | TIM_t * | tim, |
TIM_Channel | channel, | ||
float | duty ) |
bool TIM_pollCompare | ( | TIM_t * | tim, |
TIM_Channel | channel ) |
bool TIM_setTimingPeriod | ( | TIM_t * | tim, |
float | period ) |