![]() |
NEORV32 API Reference
The NEORV32 RISC-V Processor
|
#include <neorv32_pwm.h>
Data Fields | ||
| uint32_t | ENABLE | |
| uint32_t | POLARITY | |
| uint32_t | CLKPRSC | |
| const uint32_t | reserved [29] | |
| 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::POLARITY |
per-channel polarity
| const uint32_t neorv32_pwm_t::reserved[29] |
reserved
| uint16_t neorv32_pwm_t::TOP |
per-channel counter wrap value
| uint32_t neorv32_pwm_t::TOPCMP |
full 32-bit channel access