RZ/A Flexible Software Package Documentation
Release v3.0.0
|
|
This module provides a NetX Duo driver that is implemented using the Ethernet Interface.
Please refer to the NetXDuo documentation for further details.
Configuration | Options | Default | Description |
---|---|---|---|
Name | Name must be a valid C symbol | g_netxduo_ether_0 | Module name. |
IP MTU | Value must be in the range [576, 1500] bytes. | 1500 | IP MTU |
In order to ensure that there is enough space to store an entire Ethernet frame, the packet pool used for receiving packets must have a payload size that is 32 bytes larger than the configured ether_cfg_t::ether_buffer_size. The extra 32 bytes is needed in order to ensure that the allocated packets are properly aligned to 32 bytes.
ether_cfg_t::ether_buffer_size is calcualted from the IP MTU using the following formula:
ceil(( rm_netxduo_ether_cfg_t::mtu + Ethernet Header (14) + Padding Bytes (2)) / 32 ) * 32
This is a basic example of minimal use of the NetX Duo Ether Driver in an application.