ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

Data Structures | Defines | Typedefs | Functions

pwm_lld.h File Reference

PWM Driver subsystem low level driver header template. More...

Go to the source code of this file.

Data Structures

struct  PWMConfig
 Driver configuration structure. More...
struct  PWMDriver
 Structure representing an PWM driver. More...

Defines

#define PWM_CHANNELS   1
 Number of PWM channels per PWM driver.

Typedefs

typedef uint8_t pwmchannel_t
 PWM channel type.
typedef uint16_t pwmcnt_t
 PWM counter type.

Functions

void pwm_lld_init (void)
 Low level PWM driver initialization.
void pwm_lld_start (PWMDriver *pwmp)
 Configures and activates the PWM peripheral.
void pwm_lld_stop (PWMDriver *pwmp)
 Deactivates the PWM peripheral.
bool_t pwm_lld_is_enabled (PWMDriver *pwmp, pwmchannel_t channel)
 Determines whatever the PWM channel is already enabled.
void pwm_lld_set_callback (PWMDriver *pwmp, pwmchannel_t channel, pwmedge_t edge, pwmcallback_t callback)
 Enables a callback mode for the specified PWM channel.
void pwm_lld_enable_channel (PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width)
 Enables a PWM channel.
void pwm_lld_disable_channel (PWMDriver *pwmp, pwmchannel_t channel)
 Disables a PWM channel.

Detailed Description

PWM Driver subsystem low level driver header template.

Definition in file templates/pwm_lld.h.


Generated on Sun Oct 24 2010 09:40:38 for ChibiOS/RT by doxygen 1.7.1