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

Per-channel ACMPHS register window. More...

#include <ra8_acmphs_regs.h>

Data Fields

volatile uint8_t CMPCTL
 +0x00 Control (enable, edges, filter).
volatile uint8_t _r0 [3]
 Padding.
volatile uint8_t CMPSEL0
 +0x04 Plus-input selection.
volatile uint8_t _r1 [3]
 Padding.
volatile uint8_t CMPSEL1
 +0x08 Minus-input selection.
volatile uint8_t _r2 [3]
 Padding.
volatile uint8_t CMPMON
 +0x0C Output monitor (read-only).
volatile uint8_t _r3 [3]
 Padding.
volatile uint8_t CPIOC
 +0x10 Output polarity / pin control.
volatile uint8_t _r4 [k_ra8_acmphs_reserved_mid]
 Reserved.
volatile uint8_t CPINTCTL
 +0x40 Interrupt control.
volatile uint8_t _r5 [3]
 Padding.
volatile uint8_t CPMSKCTL
 +0x44 Interrupt mask control.

Detailed Description

Per-channel ACMPHS register window.

Verified against FSP R_ACMPHS0_Type in R7KA8D2KF_core0.h lines 3870-3959 (size = 0x45). The header previously modeled CMPFIR at offset 0x14; that register does not exist on RA8D2 – it was a legacy pre-RA8 field. The authoritative sequence is CMPCTL -> CMPSEL0 -> CMPSEL1 -> CMPMON -> CPIOC with a 47-byte gap up to CPINTCTL + CPMSKCTL at 0x40 / 0x44.

Definition at line 100 of file ra8_acmphs_regs.h.

Field Documentation

◆ _r0

volatile uint8_t r_acmphs_regs_t::_r0[3]

Padding.

Definition at line 102 of file ra8_acmphs_regs.h.

◆ _r1

volatile uint8_t r_acmphs_regs_t::_r1[3]

Padding.

Definition at line 104 of file ra8_acmphs_regs.h.

◆ _r2

volatile uint8_t r_acmphs_regs_t::_r2[3]

Padding.

Definition at line 106 of file ra8_acmphs_regs.h.

◆ _r3

volatile uint8_t r_acmphs_regs_t::_r3[3]

Padding.

Definition at line 108 of file ra8_acmphs_regs.h.

◆ _r4

volatile uint8_t r_acmphs_regs_t::_r4[k_ra8_acmphs_reserved_mid]

Reserved.

Definition at line 110 of file ra8_acmphs_regs.h.

◆ _r5

volatile uint8_t r_acmphs_regs_t::_r5[3]

Padding.

Definition at line 112 of file ra8_acmphs_regs.h.

◆ CMPCTL

volatile uint8_t r_acmphs_regs_t::CMPCTL

◆ CMPMON

volatile uint8_t r_acmphs_regs_t::CMPMON

+0x0C Output monitor (read-only).

Definition at line 107 of file ra8_acmphs_regs.h.

Referenced by ra8_acmphs_read_output().

◆ CMPSEL0

volatile uint8_t r_acmphs_regs_t::CMPSEL0

+0x04 Plus-input selection.

Definition at line 103 of file ra8_acmphs_regs.h.

Referenced by internal_reset_channel(), ra8_acmphs_channel_deinit(), ra8_acmphs_channel_init(), and ra8_acmphs_set_inputs().

◆ CMPSEL1

volatile uint8_t r_acmphs_regs_t::CMPSEL1

+0x08 Minus-input selection.

Definition at line 105 of file ra8_acmphs_regs.h.

Referenced by internal_reset_channel(), ra8_acmphs_channel_deinit(), ra8_acmphs_channel_init(), and ra8_acmphs_set_inputs().

◆ CPINTCTL

volatile uint8_t r_acmphs_regs_t::CPINTCTL

+0x40 Interrupt control.

Definition at line 111 of file ra8_acmphs_regs.h.

◆ CPIOC

volatile uint8_t r_acmphs_regs_t::CPIOC

+0x10 Output polarity / pin control.

Definition at line 109 of file ra8_acmphs_regs.h.

Referenced by internal_reset_channel().

◆ CPMSKCTL

volatile uint8_t r_acmphs_regs_t::CPMSKCTL

+0x44 Interrupt mask control.

Definition at line 113 of file ra8_acmphs_regs.h.


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