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
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] PhyReg PHY 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] abStationAddr Pointer 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] PhyReg PHY Register address [in] Value Value to write
- Returns:
- (0) if sucess, otherwise return (-1)
Definition at line 157 of file lpc17xx_emac.c.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2