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

This file contains the type definitions and helper macros for the Enet Peripheral interface. More...

#include <stdint.h>
#include <ti/drv/enet/include/core/enet_types.h>
#include <ti/drv/enet/include/core/enet_per.h>
#include <ti/drv/enet/include/core/enet_trace.h>

Data Structures

struct  Enet_Obj_s
 Enet object. More...
 

Macros

#define ENET_FEAT_ALL   (0xFFFFFFFFU)
 Feature mask which indicates that all of the configurable features are enabled.
 
#define ENET_FEAT_NONE   (0x00000000U)
 Feature masks which indicates that none of the configurable features are enabled.
 
#define ENET_FEAT_IS_EN(feats, mask)   (((feats) & (mask)) != 0U)
 Check if a configurable feature is enabled or not.
 
#define ENET_ERRATA_NONE   (0x00000000U)
 Errata masks which indicates that none of the erratas is applicable.
 
#define ENET_ERRATA_IS_ANY(mask)   ((mask) != ENET_ERRATA_NONE)
 Check if any errata is applicable, from an errata mask.
 
#define ENET_ERRATA_IS_EN(erratas, mask)   (((erratas) & (mask)) != 0U)
 Check if an errata is applicable.
 

Typedefs

typedef struct Enet_Obj_s Enet_Obj
 Enet object.
 
typedef struct Enet_Obj_sEnet_Handle
 Ethernet driver handle. More...
 

Functions

static EnetPer_Handle Enet_getPerHandle (Enet_Handle hEnet)
 Get the Enet Peripheral handle associated with Enet driver. More...
 

Detailed Description

This file contains the type definitions and helper macros for the Enet Peripheral interface.

Typedef Documentation

typedef struct Enet_Obj_s* Enet_Handle

Ethernet driver handle.

Ethernet driver opaque handle used to call any Enet related APIs.

Function Documentation

static EnetPer_Handle Enet_getPerHandle ( Enet_Handle  hEnet)
inlinestatic

Get the Enet Peripheral handle associated with Enet driver.

Gets the underlying Enet Peripheral handle associated with the given Enet driver.

Parameters
hEnetEnet handle
Returns
EthPer handle

Copyright 2020, Texas Instruments Incorporated