Data Structures | Macros | Typedefs | Functions
EMACMSP432E4.h File Reference

Detailed Description

EMACMSP432E4 Driver.

============================================================================

The EMACMSP432E4 header file should be included in an application as follows:


#include <stdint.h>
#include <ti/devices/msp432e4/inc/msp432.h>
#include <ti/devices/msp432e4/driverlib/pin_map.h>
#include <ti/drivers/gpio/GPIOMSP432E4.h>
#include <ti/ndk/inc/stkmain.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...
 

Typedefs

typedef struct EMACMSP432E4_HWAttrs EMACMSP432E4_HWAttrs
 EMACMSP432E4 Hardware attributes. 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 "board.c" 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.

Typedef Documentation

§ EMACMSP432E4_HWAttrs

EMACMSP432E4 Hardware attributes.

intPriority is the EMAC peripheral's interrupt priority, as defined by the underlying OS. It is passed unmodified to the underlying OS's interrupt handler creation code, so you need to refer to the OS documentation for usage. For example, for SYS/BIOS applications, refer to the ti.sysbios.family.arm.m3.Hwi documentation for SYS/BIOS usage of interrupt priorities. If the driver uses the ti.dpl interface instead of making OS calls directly, then the HwiP port handles the interrupt priority in an OS specific way. In the case of the SYS/BIOS port, intPriority is passed unmodified to Hwi_create().

Function Documentation

§ EMACMSP432E4_isLinkUp()

bool EMACMSP432E4_isLinkUp ( )

This function returns the link state of the EMACMSP432E4 driver.

This function returns true if the link is up

Returns
true is the link is up. false if it 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 "board.c" file.

Parameters
hEventNDK event semaphore
Copyright 2017, Texas Instruments Incorporated