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

Configuration descriptor for ra8_sci_lin_init. More...

#include <ra8_sci_lin.h>

Collaboration diagram for ra8_sci_lin_cfg_t:

Data Fields

ra8_sci_cfg_t uart
 Base async-UART baud + framing.
ra8_sci_lin_role_t role
 Commander (generate) or responder (detect) the frame header.
ra8_sci_lin_timer_clk_t timer_clk
 Break-field timer clock (TCSS).
uint16_t break_field_len
 XCR2.BFLW: dominant time = (break_field_len + 1) x timer clock.

Detailed Description

Configuration descriptor for ra8_sci_lin_init.

Wraps the base async-UART configuration (baud / framing) used to bring the channel up before the mode switch, plus the Simple-LIN-specific parameters: the node role, the break-field timer clock divider, and the break-field length register value. break_field_len sizes the break generated by a commander and the minimum break a responder's detector accepts; both use the same TCSS timer clock.

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

Invariant
break_field_len <= k_ra8_sci_xcr2_bflw_max (0xFFFE).

Definition at line 167 of file ra8_sci_lin.h.

Field Documentation

◆ break_field_len

uint16_t ra8_sci_lin_cfg_t::break_field_len

XCR2.BFLW: dominant time = (break_field_len + 1) x timer clock.

>= 13 bit-times per the LIN standard; 0xFFFF prohibited.

Definition at line 172 of file ra8_sci_lin.h.

Referenced by ra8_sci_lin_init().

◆ role

ra8_sci_lin_role_t ra8_sci_lin_cfg_t::role

Commander (generate) or responder (detect) the frame header.

Definition at line 169 of file ra8_sci_lin.h.

Referenced by ra8_sci_lin_init().

◆ timer_clk

ra8_sci_lin_timer_clk_t ra8_sci_lin_cfg_t::timer_clk

Break-field timer clock (TCSS).

Definition at line 171 of file ra8_sci_lin.h.

Referenced by ra8_sci_lin_init().

◆ uart

ra8_sci_cfg_t ra8_sci_lin_cfg_t::uart

Base async-UART baud + framing.

Definition at line 168 of file ra8_sci_lin.h.

Referenced by ra8_sci_lin_init().


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