|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Configuration for ra8_agt_start_pulse_output. More...
#include <ra8_agt.h>
Data Fields | |
| uint16_t | period |
| 16-bit reload (AGT register). | |
| uint16_t | duty |
| Compare-match A/B value. | |
| ra8_agt_pulse_mode_t | mode |
| continuous or one-shot. | |
| ra8_agt_output_polarity_t | polarity |
| Start-level of AGTOn. | |
| ra8_agt_pulse_compare_t | compare |
| Which compare-match pin is armed. | |
Configuration for ra8_agt_start_pulse_output.
Captures the four orthogonal settings the AGT pulse-output mode needs from a caller. period is the 16-bit AGT reload (HUM Ch 24.2.1 "AGT : AGT Counter" p 1165); the pin toggles every (period + 1) count-source cycles. duty programmes the AGTCMA / AGTCMB compare-match register that drives the chosen AGTOAn / AGTOBn pin (HUM Ch 24.2.2 p 1166 / 24.2.3 p 1166). mode decides whether the channel stops after the first underflow. polarity selects the start-level of the AGTOn pin via AGTIOC.TEDGSEL. compare selects which compare-match channel (if any) should be wired to AGTCMSR.
| ra8_agt_pulse_compare_t ra8_agt_pulse_cfg_t::compare |
Which compare-match pin is armed.
Definition at line 178 of file ra8_agt.h.
Referenced by internal_agt_pulse_program_registers(), and internal_agt_pulse_validate_cfg().
| uint16_t ra8_agt_pulse_cfg_t::duty |
Compare-match A/B value.
Definition at line 175 of file ra8_agt.h.
Referenced by internal_agt_pulse_program_registers().
| ra8_agt_pulse_mode_t ra8_agt_pulse_cfg_t::mode |
continuous or one-shot.
Definition at line 176 of file ra8_agt.h.
Referenced by ra8_agt_start_pulse_output().
| uint16_t ra8_agt_pulse_cfg_t::period |
16-bit reload (AGT register).
Definition at line 174 of file ra8_agt.h.
Referenced by internal_agt_pulse_program_registers().
| ra8_agt_output_polarity_t ra8_agt_pulse_cfg_t::polarity |
Start-level of AGTOn.
Definition at line 177 of file ra8_agt.h.
Referenced by internal_agt_pulse_program_registers(), and internal_agt_pulse_validate_cfg().