ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_agt_pulse_cfg_t Struct Reference

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.

Detailed Description

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.

Definition at line 173 of file ra8_agt.h.

Field Documentation

◆ compare

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().

◆ duty

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().

◆ mode

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().

◆ period

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().

◆ polarity

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().


The documentation for this struct was generated from the following file: