AGHAF 4.5.7
Annecy electronique Generic Hardware Access Framework
Loading...
Searching...
No Matches
aghaf_eth.h File Reference
#include <ghap/aghaf_eth_enums.h>
#include "aghaf_global.h"
Include dependency graph for aghaf_eth.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AGHAF_ETH_MacAddress
 contains a MAC address More...
 
AGHAF_Status AGHAF_ETH_activate (AGHAF_EthBus ethernet)
 start the communication with the Ethernet
 
#define AGHAF_ETH_ALEN   6
 size of a MAC address
 
AGHAF_Status AGHAF_ETH_deactivate (AGHAF_EthBus ethernet)
 stop the communication with the Ethernet
 
void AGHAF_ETH_freeFriendlyName (char *friendlyName)
 Free the memory allocated with AGHAF_Device_getFriendlyNameEthCard.
 
AGHAF_EthBus AGHAF_ETH_getBus (AGHAF_Device device, uint8_t index)
 return the Ethernet bus at index in parameter
 
uint8_t AGHAF_ETH_getBusCount (AGHAF_Device device)
 return the number of CAN bus from a device
 
uint8_t AGHAF_ETH_getBusIndex (AGHAF_EthBus ethernet)
 return the index from a Ethernet
 
void AGHAF_ETH_getFriendlyNameEthCard (AGHAF_EthBus ethernet, char **name)
 Provide the friendly name associated to the network card.
 
AGHAF_Status AGHAF_ETH_getMacAddress (AGHAF_EthBus ethernet, AGHAF_ETH_MacAddress *macAddress)
 return the Ethernet mac address on device "device", and channel "index"
 
AGHAF_Status AGHAF_ETH_getParam (AGHAF_EthBus ethernet, AGHAF_ETH_Param param, uint32_t *value)
 get a parameter from an ethernet card
 
AGHAF_Status AGHAF_ETH_isActivated (AGHAF_EthBus ethernet, AGHAF_BOOL *isActivated)
 allow to know if the communication on the Ethernet is started or not
 
typedef struct AGHAF_ETH_MacAddress AGHAF_ETH_MacAddress
 contains a MAC address
 
AGHAF_Status AGHAF_ETH_setEthernetDiagLineState (AGHAF_EthBus ethernet, AGHAF_BOOL active)
 AGHAF_ETH_setEthernetDiagLineState.
 
AGHAF_Status AGHAF_ETH_setParam (AGHAF_EthBus ethernet, AGHAF_ETH_Param param, uint32_t value)
 set a parameter from an ethernet card
 
typedef void * AGHAF_EthBus
 Handle on a ethernet object.