NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

EMAC_Private_Functions

EMAC_Private_Functions
[EMAC]

Functions

static void tx_descr_init (void)
 Initializes TX Descriptor.
static int32_t write_PHY (uint32_t PhyReg, uint16_t Value)
 Write value to PHY device.
static int32_t read_PHY (uint32_t PhyReg)
 Read value from PHY device.
void setEmacAddr (uint8_t abStationAddr[])
 Set Station MAC address for EMAC module.

Function Documentation

static int32_t read_PHY ( uint32_t  PhyReg ) [static]

Read value from PHY device.

Parameters:
[in]PhyRegPHY Register address
Returns:
Return value if success, otherwise return (-1)

Definition at line 183 of file lpc17xx_emac.c.

void setEmacAddr ( uint8_t  abStationAddr[] )

Set Station MAC address for EMAC module.

Parameters:
[in]abStationAddrPointer to Station address that contains 6-bytes of MAC address (should be in order from MAC Address 1 to MAC Address 6)
Returns:
None

Definition at line 209 of file lpc17xx_emac.c.

static void tx_descr_init ( void   ) [static]

Initializes TX Descriptor.

Parameters:
[in]None
Returns:
None

Definition at line 130 of file lpc17xx_emac.c.

static int32_t write_PHY ( uint32_t  PhyReg,
uint16_t  Value 
) [static]

Write value to PHY device.

Parameters:
[in]PhyRegPHY Register address
[in]ValueValue to write
Returns:
(0) if sucess, otherwise return (-1)

Definition at line 157 of file lpc17xx_emac.c.