Choco OS  V.0.16.9.0
Join to the chocolate world
oc_eth.h File Reference

The file with interface for ETH driver. More...

#include <oc_driver.h>
#include <oc_stdlib.h>
#include <oc_ioctl.h>
#include <oc_eth_lld.h>
#include <oc_event.h>
#include <oc_diag.h>

Go to the source code of this file.

Data Structures

struct  oC_ETH_PhyChipInfo_t
 Informations about the selected chip. More...
 
struct  oC_ETH_Config_t
 ETH driver configuration structure. More...
 

Macros

#define oC_ETH_CHIP_NAME_MAX_LENGTH
 maximum length for the chip name More...
 

Typedefs

typedef char oC_ETH_ChipName_t[oC_ETH_CHIP_NAME_MAX_LENGTH]
 stores name of the chip More...
 
typedef oC_ETH_LLD_PHY_Address_t oC_ETH_PhyAddress_t
 stores address of a PHY More...
 
typedef struct Context_toC_ETH_Context_t
 The ETH context structure. More...
 

Functions

oC_ErrorCode_t oC_ETH_TurnOn (void)
 turns on the module More...
 
oC_ErrorCode_t oC_ETH_TurnOff (void)
 Turns off the ETH driver. More...
 
bool oC_ETH_IsTurnedOn (void)
 checks if the driver is turned on More...
 
oC_ErrorCode_t oC_ETH_Configure (const oC_ETH_Config_t *Config, oC_ETH_Context_t *outContext)
 configures ETH pins to work More...
 
oC_ErrorCode_t oC_ETH_Unconfigure (const oC_ETH_Config_t *Config, oC_ETH_Context_t *outContext)
 Unconfigures the driver. More...
 
oC_ErrorCode_t oC_ETH_SendFrame (oC_ETH_Context_t Context, const oC_Net_Frame_t *Frame, oC_Time_t Timeout)
 sends frame via ETH More...
 
oC_ErrorCode_t oC_ETH_ReceiveFrame (oC_ETH_Context_t Context, oC_Net_Frame_t *outFrame, oC_Time_t Timeout)
 receives frame via ETH More...
 
oC_ErrorCode_t oC_ETH_SetLoopback (oC_ETH_Context_t Context, oC_Net_Layer_t Layer, bool Enabled)
 enables or disables loopback-mode at the given layer More...
 
oC_ErrorCode_t oC_ETH_PerformDiagnostics (oC_ETH_Context_t Context, oC_Diag_t *Diags, uint32_t *NumberOfDiags)
 performs diagnostics More...
 
oC_ErrorCode_t oC_ETH_ReadNetInfo (oC_ETH_Context_t Context, oC_Net_Info_t *outInfo)
 returns informations about the interface More...
 
bool oC_ETH_IsContextCorrect (oC_ETH_Context_t Context)
 checks if the context is correct for ETH driver More...
 

Detailed Description


File based on driver.h Ver 1.1.0

Author
Patryk Kubiak - (Created on: 2016-07-28 - 21:37:41)

Definition in file oc_eth.h.