firmware/pwm_timer.h File Reference

Controls the actual PWM-output. More...

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


Detailed Description

Controls the actual PWM-output.

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

Definition in file pwm_timer.h.


Typedef Documentation

typedef uint8_t pwm_Channels_Bitfield

8-bit-field to contain the state of the channels.

Definition at line 43 of file pwm_timer.h.

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

Value to count the steps in one channel.

Definition at line 46 of file pwm_timer.h.

typedef uint16_t pwm_Timer_Cycles

Contains a number of controller-cycles.

Definition at line 49 of file pwm_timer.h.


Enumeration Type Documentation

anonymous enum

Definition of the maximum number of steps.

Enumerator:
pwm_Channels_StepCounter_Max 

Definition at line 52 of file pwm_timer.h.


Function Documentation

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   ) 

Do nothing.

Definition at line 67 of file pwm_timer.c.

Referenced by pwm_Channels_show().

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


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