#include <stdint.h>
#include "channels.h"
Go to the source code of this file.
Data Structures | |
struct | S_pwm_Channels |
Structure to contain the state of several channels. More... | |
Typedefs | |
typedef uint8_t | pwm_Channels_Brightness |
Type to contain the brightness of one channel. | |
typedef S_pwm_Channels | pwm_Channels |
Structure to contain the state of several channels. | |
Enumerations | |
enum | { pwm_Channels_Brightness_Max = 31 } |
Definition of the maximum brightness. More... | |
Functions | |
void | pwm_Channels_init (void) |
Initialize channels. | |
void | pwm_Channels_cleanup (void) |
Clean up channels. | |
void | pwm_Channels_show (pwm_Channels channels) |
Writes the current pattern to the message-queue. |
Definition in file pwm_channels.h.
typedef struct S_pwm_Channels pwm_Channels |
Structure to contain the state of several channels.
typedef uint8_t pwm_Channels_Brightness |
anonymous enum |
void pwm_Channels_cleanup | ( | void | ) |
Clean up channels.
Basically, the PWM-timer gets cleaned.
Definition at line 33 of file pwm_channels.c.
References pwm_Timer_cleanup().
void pwm_Channels_init | ( | void | ) |
Initialize channels.
Basically, only the PWM-timer is started.
Definition at line 26 of file pwm_channels.c.
References pwm_Timer_init().
Referenced by main().
void pwm_Channels_show | ( | pwm_Channels | channels | ) |
Writes the current pattern to the message-queue.
The pattern is built from the state of all channels.
channels | Array with the channel-states. |
Definition at line 102 of file pwm_channels.c.
References S_pwm_Channels::channel, S_pwm_Channels_ChannelBrightness::cycle, messageQueue_write(), pwm_Channels_BrightnessToCycles(), pwm_Channels_CompareChannels(), and pwm_Timer_idle().