ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

pwm.h File Reference

PWM Driver macros and structures. More...

#include "pwm_lld.h"

Go to the source code of this file.

Typedefs

typedef void(* pwmcallback_t )(void)
 PWM notification callback type.

Enumerations

enum  pwmstate_t { PWM_UNINIT = 0, PWM_STOP = 1, PWM_READY = 2 }
 

Driver state machine possible states.

More...
enum  pwmmode_t { PWM_OUTPUT_DISABLED = 0, PWM_OUTPUT_ACTIVE_HIGH = 1, PWM_OUTPUT_ACTIVE_LOW = 2 }
 

PWM logic mode.

More...

Functions

void pwmInit (void)
 PWM Driver initialization.
void pwmObjectInit (PWMDriver *pwmp)
 Initializes the standard part of a PWMDriver structure.
void pwmStart (PWMDriver *pwmp, const PWMConfig *config)
 Configures and activates the PWM peripheral.
void pwmStop (PWMDriver *pwmp)
 Deactivates the PWM peripheral.
void pwmEnableChannel (PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width)
 Enables a PWM channel.
void pwmDisableChannel (PWMDriver *pwmp, pwmchannel_t channel)
 Disables a PWM channel.

Detailed Description

PWM Driver macros and structures.

Definition in file pwm.h.


Generated on Sun Jul 11 13:13:03 2010 for ChibiOS/RT by doxygen 1.6.3