TI-RTOS for TivaC
2.14.04.31
|
EMACSnow Driver.
============================================================================
The EMACSnow header file should be included in an application as follows:
The EMACSnow driver produces log statements using the instrumented library. The following masks are used:
#include <stdint.h>
#include <ti/sysbios/knl/Swi.h>
#include <ti/sysbios/family/arm/m3/Hwi.h>
#include <ti/drivers/EMAC.h>
#include <ti/ndk/inc/stkmain.h>
Go to the source code of this file.
Data Structures | |
struct | EMACSnow_HWAttrs |
EMACSnow Hardware attributes. More... | |
struct | EMACSnow_Object |
EMACSnow Object. More... | |
Macros | |
#define | ti_sysbios_family_arm_m3_Hwi__nolocalnames |
#define | _INCLUDE_NIMU_CODE |
Typedefs | |
typedef struct EMACSnow_HWAttrs | EMACSnow_HWAttrs |
EMACSnow Hardware attributes. More... | |
typedef struct EMACSnow_Object | EMACSnow_Object |
EMACSnow Object. More... | |
Functions | |
void | EMACSnow_init (uint32_t index) |
This function initializes the EMACSnow driver. More... | |
bool | EMACSnow_isLinkUp (uint32_t index) |
This function sets the EMACSnow driver. More... | |
int | EMACSnow_NIMUInit (STKEVENT_Handle hEvent) |
This function is needed in the NIMUDeviceTable that is required by the NDK. More... | |
Variables | |
const EMAC_FxnTable | EMACSnow_fxnTable |
EMACSnow function table. More... | |
#define ti_sysbios_family_arm_m3_Hwi__nolocalnames |
#define _INCLUDE_NIMU_CODE |
typedef struct EMACSnow_HWAttrs EMACSnow_HWAttrs |
EMACSnow Hardware attributes.
typedef struct EMACSnow_Object EMACSnow_Object |
EMACSnow Object.
This structure should not be directly accessed. It is specified here to allow the application to supply the needed memory to the EMACSnow module.
void EMACSnow_init | ( | uint32_t | index | ) |
This function initializes the EMACSnow driver.
This function must be called before the NDK stack thread is started.
The EMACSnow_config structure must be present and initialized before this function is called.
bool EMACSnow_isLinkUp | ( | uint32_t | index | ) |
This function sets the EMACSnow driver.
This function returns if the link is up
int EMACSnow_NIMUInit | ( | STKEVENT_Handle | hEvent | ) |
This function is needed in the NIMUDeviceTable that is required by the NDK.
const EMAC_FxnTable EMACSnow_fxnTable |
EMACSnow function table.