10#include <pico/cyw43_arch.h>
11#elif defined(USE_ETHERNET)
15#include <hardware/structs/rosc.h>
16#include <hardware/sync.h>
23 for (uint8_t i = 0; i < 8; i++) {
25 result |= rosc_hw->randombit;
64#elif defined(USE_ETHERNET)
67 ethernet_arch_lwip_begin();
70 ethernet_arch_lwip_end();
72 if (__needsIRQEN && !__inLWIP) {
74 ethernet_arch_lwip_gpio_unmask();
85#elif defined(USE_ETHERNET)
void get_eth_mac_address_raw(uint8_t *mac)
EthernetComponent * global_eth_component
const std::vector< uint8_t > & data
Providing packet encoding functions for exchanging data with a remote host.
bool random_bytes(uint8_t *data, size_t len)
Generate len random bytes using the platform's secure RNG (hardware RNG or OS CSPRNG).
void get_mac_address_raw(uint8_t *mac)
Get the device MAC address as raw bytes, written into the provided byte array (6 bytes).