#include "pwm_channels.h"
Go to the source code of this file.
Data Structures | |
struct | S_pwm_Channels_Step |
Structure to contain one step. More... | |
struct | S_pwm_Channels_Message |
Structure to contain an array of steps. More... | |
Typedefs | |
typedef uint8_t | pwm_Channels_Bitfield |
8-bit-field to contain the state of the channels. | |
typedef uint8_t | pwm_Channels_StepCounter |
Value to count the steps in one channel. | |
typedef uint16_t | pwm_Timer_Cycles |
Contains a number of controller-cycles. | |
typedef S_pwm_Channels_Step | pwm_Channels_Step |
Structure to contain one step. | |
typedef S_pwm_Channels_Message | pwm_Channels_Message |
Structure to contain an array of steps. | |
Enumerations | |
enum | { pwm_Channels_StepCounter_Max = CHANNELS + 1 } |
Definition of the maximum number of steps. More... | |
Functions | |
void | pwm_Timer_init (void) |
Initialize the PWM-Timer. | |
void | pwm_Timer_cleanup (void) |
Clean up the timer. | |
void | pwm_Timer_idle (void) |
Do nothing. |
step[0]= {10, 1|2|4};
step[1]= {20, 2|4};
step[2]= {30, 4};
step[3]= {pwm_Timer_Cycles_Max, 0};
Definition in file pwm_timer.h.
typedef uint8_t pwm_Channels_Bitfield |
typedef struct S_pwm_Channels_Message pwm_Channels_Message |
Structure to contain an array of steps.
typedef struct S_pwm_Channels_Step pwm_Channels_Step |
Structure to contain one step.
typedef uint8_t pwm_Channels_StepCounter |
typedef uint16_t pwm_Timer_Cycles |
anonymous enum |
void pwm_Timer_cleanup | ( | void | ) |
Clean up the timer.
Basically, the message-queue is cleaned.
Definition at line 60 of file pwm_timer.c.
References messageQueue_cleanup().
Referenced by pwm_Channels_cleanup().
void pwm_Timer_idle | ( | void | ) |
void pwm_Timer_init | ( | void | ) |
Initialize the PWM-Timer.
Sets basic values, starts the timer and initializes output-pins.
Definition at line 35 of file pwm_timer.c.
References CHANNELS, S_pwm_Timer_GlobalData::currentCycle, S_pwm_Channels_Step::cycle, False, S_pwm_Channels_Step::field, S_pwm_Timer_GlobalData::message, messageQueue_init(), S_pwm_Timer_GlobalData::pActive, S_pwm_Timer_GlobalData::pRead, pwm_Channels_Brightness_Max, pwm_Timer_Cycles_Max, S_pwm_Timer_GlobalData::readDone, S_pwm_Channels_Message::step, and S_pwm_Timer_GlobalData::step.
Referenced by pwm_Channels_init().