![]() |
API Reference
The NEORV32 RISC-V Processor
|
#include <neorv32_pwm.h>
Data Fields | |
| uint32_t | ENABLE |
| uint32_t | POLARITY |
| uint32_t | CLKPRSC |
| uint32_t | MODE |
| const uint32_t | reserved [28] |
| union { | |
| uint32_t TOPCMP | |
| struct { | |
| uint16_t CMP | |
| uint16_t TOP | |
| } | |
| } | CHANNEL [32] |
PWM module prototype
| uint32_t neorv32_pwm_t::CLKPRSC |
global clock prescaler
| uint16_t neorv32_pwm_t::CMP |
per-channel counter compare value
| uint32_t neorv32_pwm_t::ENABLE |
per-channel enable
| uint32_t neorv32_pwm_t::MODE |
per-channel operation mode
| uint32_t neorv32_pwm_t::POLARITY |
per-channel polarity
| const uint32_t neorv32_pwm_t::reserved[28] |
reserved
| uint16_t neorv32_pwm_t::TOP |
per-channel counter wrap value
| uint32_t neorv32_pwm_t::TOPCMP |
full 32-bit channel access