![]() |
RX Flexible Software Package Documentation
Release v1.0.0
|
|
Functions | |
| err_t | rm_lwip_ether_init (struct netif *p_netif) |
| void | rm_lwip_ether_callback (ether_callback_args_t *p_args) |
This module provides a lwIP driver that is implemented using the Ethernet Interface.
Please refer to the lwIP documentation for further details.
| Configuration | Options | Default | Description |
|---|---|---|---|
| RTOS > RX thread stacksize | Must be a positive integer | 1024 | Stack size of RX thread. |
| RTOS > RX thread priority | Must be a positive integer | 4 | Priority of RX thread. |
| Name | Name must be a valid C symbol | g_lwip_ether0 | Module name. |
| MTU | Must be an integer from 576 to 1500 | 1500 | MTU size. |
| Netif flags |
| module.middleware.lwip_ether.netif_flags.broadcast,module.middleware.lwip_ether.netif_flags.etharp | Flags representing the capabilities of the Ethernet device |
| Zero-copy mode |
| Disable | Enable or disable zero-copy mode. |
| RX buffer pool size | Must be a positive integer | 10 | Buffer pool size for zero-copy RX. |
| Link check interval | Must be a positive integer | 100 | Interval for checking link status. |
When big endian mode is selected, the Networking | lwIP Compiler and Platform Abstraction stack must be added, and its Common|Platform abstraction|Endian Mode setting must be changed to BIG_ENDIAN to ensure correct operation.
This is a basic example of minimal use of the lwIP Ether Driver in an application.
| err_t rm_lwip_ether_init | ( | struct netif * | p_netif | ) |
Initialize ethernet hardware and lwIP network interface. This function is passed to netif_add()
| void rm_lwip_ether_callback | ( | ether_callback_args_t * | p_args | ) |
Callback of Ethernet interrupt subroutine. This function is set to ethernet driver callback by configurator.