firmware/pwm_channels.h File Reference

Manages the values of the displayed channels. More...

#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.


Detailed Description

Manages the values of the displayed channels.

Author:
Thomas Stegemann
Version:
Id
pwm_channels.h,v 1.1 2006/09/26 18:18:27 rschaten Exp
License: See documentation.

Definition in file pwm_channels.h.


Typedef Documentation

typedef struct S_pwm_Channels pwm_Channels

Structure to contain the state of several channels.

typedef uint8_t pwm_Channels_Brightness

Type to contain the brightness of one channel.

Definition at line 24 of file pwm_channels.h.


Enumeration Type Documentation

anonymous enum

Definition of the maximum brightness.

Enumerator:
pwm_Channels_Brightness_Max 

Definition at line 27 of file pwm_channels.h.


Function Documentation

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.

Parameters:
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().


Generated on Mon Oct 2 19:31:18 2006 for USB-LED-Fader by  doxygen 1.4.7