![]() |
Synergy Software Package User's Manual
|
#include <nx_renesas_synergy.h>
Data Fields | |
| UINT | nx_state |
| state of this driver | |
| NX_IP * | ip_ptr |
| NetX IP structure handling this controller. | |
| uint16_t | channel |
| Channel associated with this record. | |
| UCHAR | rx_bd_space [sizeof(EMAC_BD) *(NUM_RX_DESC+1)] |
| EMAC_BD * | driver_rx_bd |
| Pointer to Receive BD. | |
| EMAC_BD * | driver_tx_bd |
| Pointer to Transmit BD. | |
| ULONG | driver_tx_bd_index |
| Transmit BD buffer index. | |
| ULONG | driver_tx_bd_in_use |
| Number of transmit BD in use. | |
| ULONG | driver_tx_release_index |
| Index of Transmit buffer index to release. | |
| ULONG | driver_rx_bd_index |
| Receive BD buffer index. | |
| UINT | driver_packets_queued |
| [not used] | |
| NX_PACKET * | driver_tx_packet_queue |
| [not used] | |
| NX_PACKET * | driver_tx_packet_queue_end |
| [not used] | |
| R_ETHERC0_Type * | etherc_ptr |
| Pointer to ETHERC register base address. | |
| R_EDMAC0_Type * | edmac_ptr |
| Pointer to EDMAC register base address. | |
| UINT | link_established |
| link status flag | |
| UINT | nx_driver_phy_polling_requested |
| Polling flag. | |
| NX_CALLBACK_REC * | p_callback_rec |
| pointer to the user callback function | |
| IRQn_Type | irq |
| Interrupt priority number. | |
Driver record structure is similar to SSP control structure that describes an open instance of sf_el_nx module.
| UCHAR NX_REC::rx_bd_space[sizeof(EMAC_BD) *(NUM_RX_DESC+1)] |
Allocate space for the BDs. Build one extra BD there because the BDs must be 16 byte aligned.