SolarEnergy/esp32_device/main/ethernet.h

32 lines
425 B
C
Raw Permalink Normal View History

2024-08-17 15:19:47 +00:00
/**
* Unsecure API functions
*/
#pragma once
2024-08-17 15:40:14 +00:00
#include "stdbool.h"
2024-08-17 15:19:47 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Initialize Ethernet connection
*/
void ethernet_init();
/**
2024-08-17 15:40:14 +00:00
* Check if Ethernet connection is ready or not
*/
bool ethernet_is_ready();
/**
* Wait for network connection to become ready
2024-08-17 15:19:47 +00:00
*/
2024-08-17 15:40:14 +00:00
void ethernet_wait_for_network();
2024-08-17 15:19:47 +00:00
#ifdef __cplusplus
}
#endif