[−][src]Module nrf52810_hal::pac::pwm0
Pulse width modulation unit
Modules
countertop | Value up to which the pulse generator counter counts |
decoder | Configuration of the decoder |
enable | PWM module enable register |
events_loopsdone | Concatenated sequences have been played the amount of times defined in LOOP.CNT |
events_pwmperiodend | Emitted at the end of each PWM period |
events_seqend | Description collection: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter |
events_seqstarted | Description collection: First PWM period started on sequence n |
events_stopped | Response to STOP task, emitted when PWM pulses are no longer generated |
inten | Enable or disable interrupt |
intenclr | Disable interrupt |
intenset | Enable interrupt |
loop_ | Number of playbacks of a loop |
mode | Selects operating mode of the wave counter |
prescaler | Configuration for PWM_CLK |
psel | Register block Unspecified |
seq | Register block Unspecified |
shorts | Shortcuts between local events and tasks |
tasks_nextstep | Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running. |
tasks_seqstart | Description collection: Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running. |
tasks_stop | Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback |
Structs
PSEL | Register block |
RegisterBlock | Register block |
SEQ | Register block |
Type Definitions
COUNTERTOP | Value up to which the pulse generator counter counts |
DECODER | Configuration of the decoder |
ENABLE | PWM module enable register |
EVENTS_LOOPSDONE | Concatenated sequences have been played the amount of times defined in LOOP.CNT |
EVENTS_PWMPERIODEND | Emitted at the end of each PWM period |
EVENTS_SEQEND | Description collection: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter |
EVENTS_SEQSTARTED | Description collection: First PWM period started on sequence n |
EVENTS_STOPPED | Response to STOP task, emitted when PWM pulses are no longer generated |
INTEN | Enable or disable interrupt |
INTENCLR | Disable interrupt |
INTENSET | Enable interrupt |
LOOP | Number of playbacks of a loop |
MODE | Selects operating mode of the wave counter |
PRESCALER | Configuration for PWM_CLK |
SHORTS | Shortcuts between local events and tasks |
TASKS_NEXTSTEP | Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running. |
TASKS_SEQSTART | Description collection: Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running. |
TASKS_STOP | Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback |