ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
board_net.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#include <stdint.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
38void board_net_init(bool trace);
39
51void board_net_on_tx(const uint8_t* frame, uint32_t len);
52
66uint32_t board_net_poll_rx(uint8_t* buf, uint32_t max);
67
76void board_net_tick(void);
77
86void board_net_report(void);
87
88#ifdef __cplusplus
89}
90#endif
void board_net_report(void)
Print the end-of-run network summary (link / ARP / ping / TCP).
Definition board_net.c:829
void board_net_init(bool trace)
Reset the virtual network peer to its initial state.
Definition board_net.c:786
uint32_t board_net_poll_rx(uint8_t *buf, uint32_t max)
Fetch the next frame the peer wants the firmware to receive.
Definition board_net.c:733
void board_net_on_tx(const uint8_t *frame, uint32_t len)
Hand one frame the firmware transmitted to the peer (ra8_eth_write).
Definition board_net.c:710
void board_net_tick(void)
Advance the peer's state machine one tick (ARP -> ping -> TCP echo).
Definition board_net.c:753