libpynq (release 5EWC0-2023 version 0.2.4 of 2023-10-07 15:07)
Loading...
Searching...
No Matches
pwm.c File Reference
#include <libpynq.h>
Include dependency graph for pwm.c:

Go to the source code of this file.

Enumerations

enum  PWM_Regs { PWM_REG_DUTY = 0 , PWM_REG_PERIOD = 1 , PWM_REG_NEW_STEP_COUNT = 2 , PWM_REG_CUR_STEP_COUNT = 3 }
 

Functions

bool pwm_initialized (const int pwm)
 
bool check_initialized_pwm (const int pwm)
 
void pwm_init (const int pwm, const uint32_t period)
 
void pwm_destroy (const int pwm)
 
uint32_t pwm_get_duty_cycle (const int pwm)
 
uint32_t pwm_get_period (const int pwm)
 
void pwm_set_period (const int pwm, const uint32_t period)
 
void pwm_set_duty_cycle (const int pwm, const uint32_t duty)
 
uint32_t pwm_get_steps (const int pwm)
 
void pwm_set_steps (const int pwm, const uint32_t steps)
 

Enumeration Type Documentation

◆ PWM_Regs

enum PWM_Regs
Enumerator
PWM_REG_DUTY 
PWM_REG_PERIOD 
PWM_REG_NEW_STEP_COUNT 
PWM_REG_CUR_STEP_COUNT 

Definition at line 24 of file pwm.c.

Function Documentation

◆ check_initialized_pwm()

bool check_initialized_pwm ( const int  pwm)

Definition at line 49 of file pwm.c.

Here is the caller graph for this function: