Library Typedefs.
More...
|
| enum | TM_PWM_Result_t {
TM_PWM_Result_Ok = 0,
TM_PWM_Result_FrequencyTooHigh,
TM_PWM_Result_FrequencyTooLow,
TM_PWM_Result_PulseTooHigh,
TM_PWM_Result_TimerNotValid,
TM_PWM_Result_ChannelNotValid,
TM_PWM_Result_PinNotValid
} |
| | PWM Result enumeration. More...
|
| |
| enum | TM_PWM_Channel_t { TM_PWM_Channel_1 = 0x00,
TM_PWM_Channel_2 = 0x01,
TM_PWM_Channel_3 = 0x02,
TM_PWM_Channel_4 = 0x03
} |
| | Channel selection for PWM on specific timer. More...
|
| |
| enum | TM_PWM_PinsPack_t { TM_PWM_PinsPack_1 = 0x00,
TM_PWM_PinsPack_2,
TM_PWM_PinsPack_3
} |
| | Pin selected for corresponding channel on specific channel. More...
|
| |
Library Typedefs.
Channel selection for PWM on specific timer.
| Enumerator |
|---|
| TM_PWM_Channel_1 |
Operate with channel 1
|
| TM_PWM_Channel_2 |
Operate with channel 2
|
| TM_PWM_Channel_3 |
Operate with channel 3
|
| TM_PWM_Channel_4 |
Operate with channel 4
|
Pin selected for corresponding channel on specific channel.
| Enumerator |
|---|
| TM_PWM_PinsPack_1 |
Pinspack 1 from pinout table
|
| TM_PWM_PinsPack_2 |
Pinspack 2 from pinout table
|
| TM_PWM_PinsPack_3 |
Pinspack 3 from pinout table
|
PWM Result enumeration.
| Enumerator |
|---|
| TM_PWM_Result_Ok |
Everything OK
|
| TM_PWM_Result_FrequencyTooHigh |
You select too high frequency for timer for PWM
|
| TM_PWM_Result_FrequencyTooLow |
Prescaler value is too big for selected frequency
|
| TM_PWM_Result_PulseTooHigh |
Pulse for Output compare is larger than timer period
|
| TM_PWM_Result_TimerNotValid |
Selected timer is not valid. This happens when you select TIM6 or TIM7, because they don't have PWM capability
|
| TM_PWM_Result_ChannelNotValid |
Channel is not valid. Some timers don't have all 4 timers available for PWM
|
| TM_PWM_Result_PinNotValid |
Selected pin is not valid. Most channels have only 2 possible pins for PWM, but some 3. If you select pin 3 on channel that don't have 3rd pin available for PWM, this will be returned
|