|
static bool | IsContextCorrect (oC_ETH_Context_t Context) |
| Checks if the context of the ETH driver is correct.
|
|
static oC_ErrorCode_t | CreateContext (const oC_ETH_Config_t *Config, oC_ETH_Context_t *outContext) |
| creates context of the driver
|
|
static oC_ErrorCode_t | DeleteContext (oC_ETH_Context_t *outContext) |
| deletes context of the driver
|
|
static oC_ErrorCode_t | InitializePhy (const oC_ETH_Config_t *Config, oC_ETH_Context_t Context) |
| initializes PHY to work
|
|
static oC_ErrorCode_t | ReleasePhy (const oC_ETH_Config_t *Config, oC_ETH_Context_t Context) |
| releases PHY when it is not needed anymore
|
|
static oC_Net_LinkStatus_t | GetLinkStatus (oC_ETH_Context_t Context) |
| returns current link status
|
|
static oC_ErrorCode_t | AllocateDescriptors (oC_ETH_Context_t Context) |
| allocates Rx/Tx descriptors
|
|
static oC_ErrorCode_t | ReleaseDescriptors (oC_ETH_Context_t Context) |
| releases Rx/Tx descriptors
|
|
static void | InterruptHandler (oC_ETH_LLD_InterruptSource_t Source) |
| handler for interrupts
|
|
static oC_ErrorCode_t | SendFrame (oC_ETH_Context_t Context, const oC_Net_MacAddress_t Source, const oC_Net_MacAddress_t Destination, const void *Data, uint16_t Size, oC_ETH_LLD_FrameSegment_t FrameSegment, oC_Net_FrameType_t FrameType, oC_Time_t Timeout) |
| sends frame
|
|
static oC_ErrorCode_t | ReceiveFrame (oC_ETH_Context_t Context, oC_Net_MacAddress_t outSource, oC_Net_MacAddress_t outDestination, void *Data, uint16_t *Size, oC_ETH_LLD_FrameSegment_t *outFrameSegment, oC_Net_FrameType_t *outFrameType, oC_Time_t Timeout) |
| receives frame
|
|
static oC_ErrorCode_t | PerformPhyRegisterAccessTest (oC_Diag_t *Diag, void *Context) |
| performs PHY registers access test
|
|
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.c Ver 1.1.0
- Author
- Patryk Kubiak - (Created on: 2016-07-28 - 21:37:41)
- Copyright
- Copyright (C) 2016 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om
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.c.