ESP8266_RTOS_SDK v1.4.0

- Main Page
- Modules
- Data Structures
- Files

Data Structures | Macros | Enumerations | Functions
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"

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

## Functions
void | os_delay_us (uint16 us)
| Delay function, maximum value: 65535 us. More...
void | os_install_putc1 (void(*p)(char c))
| Register the print output function. More...
void | os_putc (char c)
| Print a character. Start from from UART0 by default. More...

## 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)

## 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

## Function Documentation

void os_delay_us | ( | uint16 | us | ) |

Delay function, maximum value: 65535 us.

Parameters

  uint16 | us : delay time, uint: us, maximum value: 65535 us

Returns
  null

void os_install_putc1 | ( | void(*)(char c) | p | ) |

Register the print output function.

Attention
  os_install_putc1((void *)uart1_write_char) in uart_init will set printf to print from UART 1, otherwise, printf will start from UART 0 by default.

Parameters

  void(*p)(char | c) - pointer of print function

Returns
  null

void os_putc | ( | char | c | ) |

Print a character. Start from from UART0 by default.

Parameters

  char | c - character to be printed

Returns
  null