Data Structures | Macros | Functions
EMACMSP432E4.h File Reference

Detailed Description

Ethernet Media Access Control (EMAC) MSP432E4 Driver.


#include <ti/ndk/inc/stkmain.h>
#include <ti/drivers/gpio/GPIOMSP432E4.h>
Include dependency graph for EMACMSP432E4.h:

Go to the source code of this file.

Data Structures

struct  EMACMSP432E4_HWAttrs
 EMACMSP432E4 Hardware attributes. More...
 

Macros

#define EMACMSP432E4_PF0_EN0LED0   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 0, GPIO_PF0_EN0LED0)
 PF0 is used for EN0LED0. More...
 
#define EMACMSP432E4_PK4_EN0LED0   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 4, GPIO_PK4_EN0LED0)
 PK4 is used for EN0LED0. More...
 
#define EMACMSP432E4_PF4_EN0LED1   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 4, GPIO_PF4_EN0LED1)
 PF4 is used for EN0LED1. More...
 
#define EMACMSP432E4_PK6_EN0LED1   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 6, GPIO_PK6_EN0LED1)
 PK6 is used for EN0LED1. More...
 
#define EMACMSP432E4_PF1_EN0LED2   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 1, GPIO_PF1_EN0LED2)
 PF1 is used for EN0LED2. More...
 
#define EMACMSP432E4_PK5_EN0LED2   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 5, GPIO_PK5_EN0LED2)
 PK5 is used for EN0LED2. More...
 
#define EMACMSP432E4_ETHERNET_NAME   "eth0"
 The name used to register the Ethernet interface with NIMU. More...
 

Functions

bool EMACMSP432E4_isLinkUp ()
 This function returns the link state of the EMACMSP432E4 driver. More...
 
int EMACMSP432E4_NIMUInit (STKEVENT_Handle hEvent)
 This function is included in the NIMUDeviceTable that is used by the NDK to initialize and register the driver. This function should not be called by the user. The NIMUDeviceTable is typically provided in the TI Driver's configuration file. More...
 

Macro Definition Documentation

§ EMACMSP432E4_PF0_EN0LED0

#define EMACMSP432E4_PF0_EN0LED0   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 0, GPIO_PF0_EN0LED0)

PF0 is used for EN0LED0.

§ EMACMSP432E4_PK4_EN0LED0

#define EMACMSP432E4_PK4_EN0LED0   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 4, GPIO_PK4_EN0LED0)

PK4 is used for EN0LED0.

§ EMACMSP432E4_PF4_EN0LED1

#define EMACMSP432E4_PF4_EN0LED1   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 4, GPIO_PF4_EN0LED1)

PF4 is used for EN0LED1.

§ EMACMSP432E4_PK6_EN0LED1

#define EMACMSP432E4_PK6_EN0LED1   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 6, GPIO_PK6_EN0LED1)

PK6 is used for EN0LED1.

§ EMACMSP432E4_PF1_EN0LED2

#define EMACMSP432E4_PF1_EN0LED2   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 1, GPIO_PF1_EN0LED2)

PF1 is used for EN0LED2.

§ EMACMSP432E4_PK5_EN0LED2

#define EMACMSP432E4_PK5_EN0LED2   GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 5, GPIO_PK5_EN0LED2)

PK5 is used for EN0LED2.

§ EMACMSP432E4_ETHERNET_NAME

#define EMACMSP432E4_ETHERNET_NAME   "eth0"

The name used to register the Ethernet interface with NIMU.

Function Documentation

§ EMACMSP432E4_isLinkUp()

bool EMACMSP432E4_isLinkUp ( )

This function returns the link state of the EMACMSP432E4 driver.

Return values
trueif the link is up.
falseif the link is down.

§ EMACMSP432E4_NIMUInit()

int EMACMSP432E4_NIMUInit ( STKEVENT_Handle  hEvent)

This function is included in the NIMUDeviceTable that is used by the NDK to initialize and register the driver. This function should not be called by the user. The NIMUDeviceTable is typically provided in the TI Driver's configuration file.

Parameters
[in]hEventSTKEVENT_Handle semaphore
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale