keil_examples/EMAC/EMAC.c
// Reads the length of the received ethernet frame and checks if the 
// destination address is a broadcast message or not
// returns the frame length
Reads the length of the received ethernet frame and checks if the
destination address is a broadcast message or not
returns the frame length
Reads the length of the received ethernet frame and checks if the destination address is a broadcast message or not returns the frame length
unsigned short StartReadFrame(void) {
  unsigned short RxLen;
  unsigned int idx;
  idx = LPC_EMAC->RxConsumeIndex;
  RxLen = (RX_STAT_INFO(idx) & RINFO_SIZE) - 3;
  rptr = (unsigned short *)RX_DESC_PACKET(idx);
  return(RxLen);
}
unsigned short StartReadFrame ( void ) { unsigned short RxLen ; unsigned int idx ; idx = LPC_EMAC -> RxConsumeIndex ; RxLen = ( RX_STAT_INFO ( idx ) & RINFO_SIZE ) - 3 ; rptr = ( unsigned short * ) RX_DESC_PACKET ( idx ) ; return ( RxLen ) ; }
Reads the length of the received ethernet frame and checks if the
destination address is a broadcast message or not
returns the frame length
Reads the length of the received ethernet frame and checks if the destination address is a broadcast message or not returns the frame length