Specifications
RX62N Group Ethernet Transmit and Receive Settings
R01AN0629EJ0101 Rev.1.01 Page 36 of 52
Mar 31, 2011
4.4.4 50BR_Ether_Write
The R_Ether_Write function transmits data from the application’s transmit buffer.
• Prototype
int32_t R_Ether_Write(uint32_t ch, void *buf, uint32_t len);
• Arguments
⎯ ch
ETHERC channel number specification
⎯ *buf
Pointer to Ethernet data to be transmitted
⎯ len
Ethernet frame length
• 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_Write function writes transmit data to the buffer designated by the transmit descriptor. The transmit
descriptor status is updated each time new data is processed. After the data is written, it is transmitted by the
ETHERC.
The R_Ether_Write function does not check transmit completion.
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 function does not check for transmit frame errors.
4.4.5 51BR_Ether_Write_Sync
The Ether_Write_Sync function writes transmit data to the transmit buffer and waits for data transmission to
complete.
• Prototype
int32_t R_Ether_Write_Sync(uint32_t ch, void *buf, uint32_t len);
• Arguments
⎯ ch
ETHERC channel number specification
⎯ *buf
Pointer to Ethernet data to be transmitted
⎯ len
Ethernet frame length
• Return values
R_ETHER_OK(0): Normal completion
R_ETHER_ERROR(-1): Error
R_ETHER_TIMEOUT(-2): Timeout
R_ETHER_HARD_ERROR(-3): Hardware error (Software reset required to recover.)
R_ETHER_RECOVERABLE(-4): Recoverable error (Software reset not required to recover.)
• Properties
Declared in r_ether.h file
Defined in r_ether.c file
• Description
The R_Ether_Write function writes transmit data to the buffer designated by the transmit descriptor. In addition to
processing new data and waiting for transmission to complete, it updates the transmit descriptor status.