51typedef enum : uintptr_t {
63typedef enum : uint8_t {
78typedef enum : uint8_t {
94typedef enum : uint16_t {
173typedef enum : int32_t {
200typedef enum : int32_t {
Annotation-attribute framework macros for ra8-firmware.
#define RA8_HW_REGISTER_ACCESS
Mark an MMIO accessor function (returns volatile register pointer).
@ k_ra8_tsn_ctrl_base_addr
TSN control block.
@ k_ra8_tsn_cal_base_addr
Factory calibration.
ra8_tscdr_field_t
Field widths for TSCDR / TSCDR2 calibration words.
@ k_ra8_tscdr_data_mask
12-bit data mask (HUM Ch 55.2.2 p 3498).
static volatile const uint32_t * ra8_tsn_tscdr(void)
Get pointer to the factory-programmed calibration word (TSCDR).
ra8_tscr_mask_t
Bit masks for TSCR (Temperature Sensor Control Register).
@ k_ra8_tscr_mask_tsoe
TSOE bit (ADC output enable).
@ k_ra8_tscr_mask_all
TSEN | TSOE.
@ k_ra8_tscr_mask_tsen
TSEN bit (sensor enable).
ra8_tsn_adc_const_t
ADC-side scaling constants used by the two-point conversion.
@ k_ra8_tsn_uv_per_mv
1000-x scale (degC -> mC).
@ k_ra8_tsn_adc_avcc_uv
AVCC = 3.3 V expressed in uV.
@ k_ra8_tsn_adc_full_scale
12-bit ADC full-scale.
ra8_tscr_bit_t
Bit positions in TSCR (Temperature Sensor Control Register).
@ k_ra8_tscr_bit_tsoe
1 = output enabled to ADC_B.
@ k_ra8_tscr_bit_tsen
1 = sensor enabled, 0 = off.
static volatile r_tsn_ctrl_regs_t * ra8_tsn(void)
Get pointer to the TSN control block (HUM Ch 55.2.1 p 3498).
static volatile const r_tsn_cal_regs_t * ra8_tsn_cal(void)
Get pointer to the factory-calibration block (TSCDR + TSCDR2).
ra8_tsn_cal_t
Calibration constants for the degC conversion.
@ k_ra8_tsn_slope_uv_per_c
Slope in microvolts per degC.
@ k_ra8_tsn_ref_temp_degc
Reference temperature (degC).
TSN factory-calibration block (read-only on hardware).
volatile uint32_t TSCDR2
+0x04 Calibration code at low ref temperature.
volatile uint32_t TSCDR
+0x00 Calibration code at high ref temperature.
TSN control block register window.
volatile uint8_t TSCR
+0x00 Temperature Sensor Control Register.