|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Test-access surface for ra8_usb_pal internal helpers (MC/DC). More...
Go to the source code of this file.
Functions | |
| bool | priv_usb_pal_should_dispatch_event (const void *event_fn, uint16_t mask, uint16_t none_value) |
| Pure predicate: callback non-NULL AND mask non-zero. | |
| bool | priv_usb_pal_ep_out_of_range (uint8_t ep_addr, uint8_t ep_max) |
| Pure predicate: endpoint number is zero OR exceeds max. | |
Test-access surface for ra8_usb_pal internal helpers (MC/DC).
Declares the module-private pure predicates shared by the PAL implementation and its focused hosted qualification test.
Definition in file ra8_usb_pal_internal.h.
| bool priv_usb_pal_ep_out_of_range | ( | uint8_t | ep_addr, |
| uint8_t | ep_max ) |
Pure predicate: endpoint number is zero OR exceeds max.
Promoted from the inline OR at libs/ra8_usb_pal/src/ra8_usb_pal.c inside ra8_usb_pal_ep_recv.
| [in] | ep_addr | Endpoint number (after addr_mask strip). |
| [in] | ep_max | Maximum permitted endpoint number. |
| true | Caller must return k_ra8_err_invalid_arg. |
| false | Endpoint is in range. |
Pure predicate: endpoint number is zero OR exceeds max.
Promoted helper so the line-559 OR can be driven under MC/DC.
| [in] | ep_addr | Endpoint number. |
| [in] | ep_max | Maximum permitted endpoint number. |
| true | Caller returns invalid-arg. |
| false | Endpoint is in range. |
Definition at line 67 of file ra8_usb_pal.c.
Referenced by ra8_usb_pal_ep_open(), ra8_usb_pal_ep_recv(), and ra8_usb_pal_ep_send().
| bool priv_usb_pal_should_dispatch_event | ( | const void * | event_fn, |
| uint16_t | mask, | ||
| uint16_t | none_value ) |
Pure predicate: callback non-NULL AND mask non-zero.
Promoted from the inline AND at libs/ra8_usb_pal/src/ra8_usb_pal.c inside internal_usb_event.
| [in] | event_fn | Application callback (NULL when none). |
| [in] | mask | Translated event-mask bits. |
| [in] | none_value | Numeric value of k_ra8_usb_pal_event_none. |
| true | Caller must invoke event_fn. |
| false | Skip the callback. |
Pure predicate: callback non-NULL AND mask non-zero.
Promoted helper so the line-218 AND can be driven under MC/DC.
| [in] | event_fn | Application callback. |
| [in] | mask | Translated event-mask bits. |
| [in] | none_value | Numeric value of k_ra8_usb_pal_event_none. |
| true | Caller invokes event_fn. |
| false | Skip the callback. |
Definition at line 47 of file ra8_usb_pal.c.
Referenced by internal_usb_event().