|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Test-access surface for the BLE loopback transport. More...
Go to the source code of this file.
Functions | |
| void | ra8_ble_test_reset_capture (void) |
| Reset the BLE loopback capture and injection cursors. | |
| void | ra8_ble_test_inject_rx (const uint8_t *bytes, uint16_t len) |
| Replace the synthetic BLE receive input with bounded caller bytes. | |
| const uint8_t * | ra8_ble_test_tx_capture (uint16_t *out_len) |
| Borrow the BLE transmit capture and optionally report its length. | |
Test-access surface for the BLE loopback transport.
Declares the bounded capture and injection hooks used to verify HCI framing and receive dispatch without exposing them as public HAL operations. Production code must use the API in ra8_ble.h.
Definition in file ra8_ble_internal.h.
| void ra8_ble_test_inject_rx | ( | const uint8_t * | bytes, |
| uint16_t | len ) |
Replace the synthetic BLE receive input with bounded caller bytes.
Rejects a null source or zero length without changing state. A longer source is truncated to k_ra8_ble_rx_inject_bytes, copied into module-owned storage, and made readable from position zero.
| [in] | bytes | Source bytes, or nullptr for the rejected-input vector. |
| [in] | len | Readable source extent in bytes; values above the injection capacity are truncated. |
bytes addresses at least len readable bytes. Definition at line 479 of file ra8_ble.c.
References internal_byte_copy(), k_ra8_ble_rx_inject_bytes, RA8_TEST_HELPER, and s_state.
| void ra8_ble_test_reset_capture | ( | void | ) |
Reset the BLE loopback capture and injection cursors.
Clears the recorded transmit length and discards every unread byte in the synthetic receive buffer without changing open state or registered callbacks.
Definition at line 472 of file ra8_ble.c.
References RA8_TEST_HELPER, and s_state.
| const uint8_t * ra8_ble_test_tx_capture | ( | uint16_t * | out_len | ) |
Borrow the BLE transmit capture and optionally report its length.
Returns the stable module-owned capture base and writes the number of valid leading bytes only when out_len is non-null.
| [out] | out_len | Optional destination for the captured byte count. |
| non-null | The fixed capture buffer base; ownership remains internal. |
out_len addresses writable uint16_t storage. out_len contains the current capture length. Definition at line 492 of file ra8_ble.c.
References RA8_TEST_HELPER, and s_state.