ESP32_RTOS_SDK V1.1.0

- Main Page
- Modules
- Data Structures
- Files

Data Structures | Macros | Enumerations | Functions | Variables
Misc APIs

misc APIs More...

## Data Structures

struct | dhcps_lease

## Macros

#define | MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
#define | MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
#define | IP2STR(ipaddr)
#define | IPSTR "%d.%d.%d.%d"
#define | os_delay_us ets_delay_us
#define | os_install_putc1 ets_install_putc1
#define | os_putc ets_putc
#define | printf_call ets_printf
#define | os_printf(fmt, ...)
#define | os_printf_isr(fmt, ...)

## Enumerations

enum | dhcp_status { DHCP_STOPPED, DHCP_STARTED }
enum | dhcps_offer_option { OFFER_START = 0x00, OFFER_ROUTER = 0x01, OFFER_END }

## Functions

void | ets_delay_us (uint16 us)
void | ets_install_putc1 (void(*p)(char c))
void | ets_putc (char c)
void | ets_printf (const char *fmt,...)
unsigned long | os_random (void)
int | os_get_random (uint8 *buf, size_t len)

## Variables

SemaphoreHandle_t | stdio_mutex_tx

## Detailed Description

misc APIs

## Macro Definition Documentation

#define IP2STR | ( |  | ipaddr | ) |

Value:
ip4_addr1_16(ipaddr), \
ip4_addr2_16(ipaddr), \
ip4_addr3_16(ipaddr), \
ip4_addr4_16(ipaddr)

#define os_printf | ( |  | fmt,
|  |  | ...
| ) |  |

Value:
do { \
xSemaphoreTake(stdio_mutex_tx, portMAX_DELAY); \
printf_call(fmt, ##__VA_ARGS__); \
xSemaphoreGive(stdio_mutex_tx); \
} while(0)

#define os_printf_isr | ( |  | fmt,
|  |  | ...
| ) |  |

Value:
do { \
static const char ram_str[] DRAM_ATTR STORE_ATTR = fmt; \
ets_printf(ram_str, ##__VA_ARGS__); \
} while(0)

## Enumeration Type Documentation

enum dhcp_status

Enumerator
DHCP_STOPPED | disable DHCP
DHCP_STARTED | enable DHCP

enum dhcps_offer_option

Enumerator
OFFER_START | DHCP offer option start
OFFER_ROUTER | DHCP offer router, only support this option now
OFFER_END | DHCP offer option start