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

Configuration descriptor for ra8_gpt_init. More...

#include <ra8_gpt.h>

Data Fields

ra8_gpt_mode_t mode
 Counter mode.
ra8_gpt_prescaler_t prescaler
 Clock divider.
uint32_t period
 GTPR period.
uint32_t duty_a
 GTCCRA compare/duty (PWM A).
uint32_t duty_b
 GTCCRB compare/duty (PWM B).
bool auto_start
 True -> start after init.

Detailed Description

Configuration descriptor for ra8_gpt_init.

cppcheck cannot see tests/ so it flags every field as unused; each member is read in ra8_gpt_init in libs/ra8_hal/src/ra8_gpt.c.

Definition at line 83 of file ra8_gpt.h.

Field Documentation

◆ auto_start

bool ra8_gpt_cfg_t::auto_start

True -> start after init.

Definition at line 89 of file ra8_gpt.h.

Referenced by ra8_gpt_init().

◆ duty_a

uint32_t ra8_gpt_cfg_t::duty_a

GTCCRA compare/duty (PWM A).

Definition at line 87 of file ra8_gpt.h.

Referenced by ra8_gpt_init().

◆ duty_b

uint32_t ra8_gpt_cfg_t::duty_b

GTCCRB compare/duty (PWM B).

Definition at line 88 of file ra8_gpt.h.

Referenced by ra8_gpt_init().

◆ mode

ra8_gpt_mode_t ra8_gpt_cfg_t::mode

Counter mode.

Definition at line 84 of file ra8_gpt.h.

Referenced by ra8_gpt_init().

◆ period

uint32_t ra8_gpt_cfg_t::period

GTPR period.

Definition at line 86 of file ra8_gpt.h.

Referenced by ra8_gpt_init().

◆ prescaler

ra8_gpt_prescaler_t ra8_gpt_cfg_t::prescaler

Clock divider.

Definition at line 85 of file ra8_gpt.h.

Referenced by ra8_gpt_init().


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