Choco OS
V.0.16.9.0
Join to the chocolate world
|
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_t * | oC_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... | |
File based on driver.h Ver 1.1.0
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file oc_eth.h.