EVE 1.0
pwm.h File Reference

Driver for PWM in nRF52. More...

#include <dev/gpio.h>
#include <hal/nrf_pwm.h>
Include dependency graph for pwm.h:

Go to the source code of this file.

Data Structures

struct  pwm_state_t
 
struct  pwm_channel_config_t
 
struct  pwm_t
 

Macros

#define PWM_NUM_CHANNELS   4
 

Functions

Functions called from application programs
void PwmInit (const struct pwm_t *Pwm)
 Name: PwmInit
Initialize PWM. More...
 
void PwmSet (const struct pwm_t *Pwm, uint8_t Channel, uint16_t Value)
 Name: PwmSet
Sets PWM duty cycle for the selected channel. More...
 
void PwmFrequencySet (const struct pwm_t *Pwm, uint32_t Frequency)
 Name: PwmFrequencySet
Sets the PWM frequency. This frequency will be used for all channels on the selected timer. More...
 
void PwmInterruptHandler (const struct pwm_t *Pwm)
 Name: PwmInterruptHandler
PWM interrupt handler Called from board.c at hardware interrupt context. More...
 

Detailed Description

Driver for PWM in nRF52.

Author
KLO, Jetro AS

Definition in file pwm.h.