libpynq (release 5EWC0-2023 version 0.2.6 of 2023-10-24 17:28)
|
#include <libpynq.h>
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) |
enum PWM_Regs |