Specifications

RX62N Group Ethernet Transmit and Receive Settings
R01AN0629EJ0101 Rev.1.01 Page 34 of 52
Mar 31, 2011
4.4 23BEthernet Driver API
The functions below are provided as TCP/IP stack driver interfaces. They compose the standard Renesas API (RAPI)
for Renesas Ethernet devices.
R_Ether_Open
R_Ether_Close
R_Ether_Read
R_Ether_Write
R_Ether_Write_Sync
4.4.1 47BR_Ether_Open
The R_Ether_Open function initializes the ETHERC, EDMAC, physical layer transceiver (PHY), and
transmit/receive data buffers. The initialization of the ETHERC and EDMAC is separate from the power-on reset.
Prototype
int32_t R_Ether_Open(uint32_t ch, uint8_t mac_addr[]);
Arguments
ch
ETHERC channel number specification
mac_addr
ETHERC MAC address specification
Return values
R_ETHER_OK(0): Normal completion
R_ETHER_ERROR(-1): Error
Properties
Declared in r_ether.h file
Defined in r_ether.c file
Description
The R_Ether_Open function initializes the ETHERC and EDMAC. It sets the EDMAC descriptors and buffers to
their initial state. The MAC address is used to initialize the MAC address register of the ETHERC.
The initial settings specify auto-negotiation mode for the physical layer transceiver (PHY).
The RX62N has only one Ethernet channel, so Ethernet driver processing does not branch according to the channel
number. The function will operate normally regardless of the channel number value, but setting the channel number
to 0 is recommended.
The Ethernet driver of the RX62N does not include code for processing when the MAC address is set to 0.
Therefore, make sure to input a value other than 0 as the MAC address, or add appropriate program code for
processing when the MAC address is set to 0.