![]() |
![]() |
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... | |
#define EMACMSP432E4_PF0_EN0LED0 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 0, GPIO_PF0_EN0LED0) |
PF0 is used for EN0LED0.
#define EMACMSP432E4_PK4_EN0LED0 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 4, GPIO_PK4_EN0LED0) |
PK4 is used for EN0LED0.
#define EMACMSP432E4_PF4_EN0LED1 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 4, GPIO_PF4_EN0LED1) |
PF4 is used for EN0LED1.
#define EMACMSP432E4_PK6_EN0LED1 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 6, GPIO_PK6_EN0LED1) |
PK6 is used for EN0LED1.
#define EMACMSP432E4_PF1_EN0LED2 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTF, 1, GPIO_PF1_EN0LED2) |
PF1 is used for EN0LED2.
#define EMACMSP432E4_PK5_EN0LED2 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTK, 5, GPIO_PK5_EN0LED2) |
PK5 is used for EN0LED2.
typedef struct EMACMSP432E4_HWAttrs 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().
bool EMACMSP432E4_isLinkUp | ( | ) |
This function returns the link state of the EMACMSP432E4 driver.
This function returns true if the link is up
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.
hEvent | NDK event semaphore |