|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Test-access surface for ra8_i3c internal helpers (MC/DC). More...
Go to the source code of this file.
Functions | |
| bool | priv_ra8_i3c_internal_recv_ccc_invalid (uint8_t addr_mask, uint8_t target, uint8_t max_len) |
| Pure predicate: target_addr out of range OR max_len is zero. | |
| bool | priv_ra8_i3c_internal_hdr_mode_invalid (uint32_t sdr_val, uint32_t ddr_val, uint32_t ts_val, uint32_t mode) |
| Pure predicate: HDR mode value is not one of {SDR, DDR, TS}. | |
Test-access surface for ra8_i3c internal helpers (MC/DC).
Declares bounded module-private predicates used to validate I3C controller operations and expose focused coverage seams.
Definition in file ra8_i3c_internal.h.
| bool priv_ra8_i3c_internal_hdr_mode_invalid | ( | uint32_t | sdr_val, |
| uint32_t | ddr_val, | ||
| uint32_t | ts_val, | ||
| uint32_t | mode ) |
Pure predicate: HDR mode value is not one of {SDR, DDR, TS}.
Promoted from the inline triple AND at libs/ra8_hal/src/ra8_i3c.c in ra8_i3c_set_hdr_mode.
| [in] | sdr_val | Numeric value of k_ra8_i3c_hdr_mode_sdr. |
| [in] | ddr_val | Numeric value of k_ra8_i3c_hdr_mode_ddr. |
| [in] | ts_val | Numeric value of k_ra8_i3c_hdr_mode_ts. |
| [in] | mode | Candidate mode value. |
| true | Mode is not one of the three legal values. |
| false | Mode is legal. |
Pure predicate: HDR mode value is not one of {SDR, DDR, TS}.
Promoted helper so the line-815 AND can be driven under MC/DC.
| [in] | sdr_val | Numeric value of k_ra8_i3c_hdr_mode_sdr. |
| [in] | ddr_val | Numeric value of k_ra8_i3c_hdr_mode_ddr. |
| [in] | ts_val | Numeric value of k_ra8_i3c_hdr_mode_ts. |
| [in] | mode | Candidate mode value. |
| true | Mode is not legal. |
| false | Mode is legal. |
Definition at line 80 of file ra8_i3c.c.
Referenced by ra8_i3c_set_hdr_mode().
| bool priv_ra8_i3c_internal_recv_ccc_invalid | ( | uint8_t | addr_mask, |
| uint8_t | target, | ||
| uint8_t | max_len ) |
Pure predicate: target_addr out of range OR max_len is zero.
Promoted from the inline OR at libs/ra8_hal/src/ra8_i3c.c in ra8_i3c_recv_ccc.
| [in] | addr_mask | Maximum valid 7-bit address (mask). |
| [in] | target | Candidate target address. |
| [in] | max_len | Caller-supplied max read length. |
| true | Caller must return k_ra8_err_invalid_arg. |
| false | Inputs valid. |
Pure predicate: target_addr out of range OR max_len is zero.
Promoted helper so the line-688 OR can be driven under MC/DC.
| [in] | addr_mask | Maximum valid 7-bit address mask. |
| [in] | target | Candidate target address. |
| [in] | max_len | Caller-supplied max read length. |
| true | Inputs invalid. |
| false | Inputs OK. |
Definition at line 58 of file ra8_i3c.c.
Referenced by ra8_i3c_recv_ccc().