API to use ethernet on exxotest devices.
More...
| AGHAF_EthBus | AGHAF_ETH_getBus (AGHAF_Device device, uint8_t index) |
| | return the Ethernet bus at index in parameter
|
| |
| uint8_t | AGHAF_ETH_getBusIndex (AGHAF_EthBus ethernet) |
| | return the index from a Ethernet
|
| |
| uint8_t | AGHAF_ETH_getBusCount (AGHAF_Device device) |
| | return the number of CAN bus from a device
|
| |
| AGHAF_Status | AGHAF_ETH_activate (AGHAF_EthBus ethernet) |
| | start the communication with the Ethernet
|
| |
| AGHAF_Status | AGHAF_ETH_deactivate (AGHAF_EthBus ethernet) |
| | stop the communication with the Ethernet
|
| |
| AGHAF_Status | AGHAF_ETH_isActivated (AGHAF_EthBus ethernet, AGHAF_BOOL *isActivated) |
| | allow to know if the communication on the Ethernet is started or not
|
| |
| 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_setParam (AGHAF_EthBus ethernet, AGHAF_ETH_Param param, uint32_t value) |
| | set a parameter from an ethernet card
|
| |
| void | AGHAF_ETH_getFriendlyNameEthCard (AGHAF_EthBus ethernet, char **name) |
| | Provide the friendly name associated to the network card.
|
| |
| void | AGHAF_ETH_freeFriendlyName (char *friendlyName) |
| | Free the memory allocated with AGHAF_Device_getFriendlyNameEthCard.
|
| |
| AGHAF_Status | AGHAF_ETH_getMacAddress (AGHAF_EthBus ethernet, AGHAF_ETH_MacAddress *macAddress) |
| | return the Ethernet mac address on device "device", and channel "index"
|
| |
| AGHAF_BOOL | AGHAF_ETH_getEthernetDiagLineState (AGHAF_EthBus ethernet) |
| | Return the current state from the activation line.
|
| |
| AGHAF_Status | AGHAF_ETH_setEthernetDiagLineState (AGHAF_EthBus ethernet, AGHAF_BOOL active) |
| | AGHAF_ETH_setEthernetDiagLineState.
|
| |
|
#define | AGHAF_ETH_ALEN 6 |
| | size of a MAC address
|
| |
|
typedef void * | AGHAF_EthBus |
| | Handle on a ethernet object.
|
| |
|
typedef struct AGHAF_ETH_MacAddress | AGHAF_ETH_MacAddress |
| | contains a MAC address
|
| |
API to use ethernet on exxotest devices.
◆ AGHAF_ETH_activate()
start the communication with the Ethernet
- Warning
- not implemented in MD3
- Parameters
-
| ethernet | handle on the Ethernet |
- Returns
- status request information
◆ AGHAF_ETH_deactivate()
stop the communication with the Ethernet
- Warning
- not implemented in MD3
- Parameters
-
| ethernet | handle on the Ethernet |
- Returns
- status request information
◆ AGHAF_ETH_freeFriendlyName()
| void AGHAF_ETH_freeFriendlyName |
( |
char * |
friendlyName | ) |
|
Free the memory allocated with AGHAF_Device_getFriendlyNameEthCard.
- Parameters
-
◆ AGHAF_ETH_getBus()
return the Ethernet bus at index in parameter
- Parameters
-
| device | device handle from the desired Ethernet bus |
| index | index from the bus |
- Returns
- Handle on a Ethernet bus
- Examples
- Ethernet/main.cpp.
◆ AGHAF_ETH_getBusCount()
return the number of CAN bus from a device
- Parameters
-
| device | handle from the device |
- Returns
- Number of CAN bus on the device
- Examples
- Ethernet/main.cpp.
◆ AGHAF_ETH_getBusIndex()
return the index from a Ethernet
- Parameters
-
| ethernet | handle from the Ethernet |
- Returns
- index from the bus
◆ AGHAF_ETH_getEthernetDiagLineState()
Return the current state from the activation line.
- Warning
- not implemented in MD3
- Parameters
-
| ethernet | handle on the Ethernet bus |
- Returns
- boolean to know if activation line is ON or OFF
◆ AGHAF_ETH_getFriendlyNameEthCard()
| void AGHAF_ETH_getFriendlyNameEthCard |
( |
AGHAF_EthBus |
ethernet, |
|
|
char ** |
name |
|
) |
| |
Provide the friendly name associated to the network card.
- Parameters
-
| ethernet | handle from the desired Ethernet bus |
| name | pointer on the string name |
- Warning
- the memory allocated in terminations must freed with AGHAF_ETH_freeFriendlyName
◆ AGHAF_ETH_getMacAddress()
return the Ethernet mac address on device "device", and channel "index"
- Parameters
-
| ethernet | handle from the desired Ethernet bus |
| macAddress | string of size 13 of uint8_t |
- Returns
- status request information
◆ AGHAF_ETH_getParam()
get a parameter from an ethernet card
- Warning
- not implemented in MD3
- Parameters
-
| ethernet | handle on the Ethernet |
| param | parameter to get |
| value | value to get |
- Returns
- status request information
◆ AGHAF_ETH_isActivated()
allow to know if the communication on the Ethernet is started or not
- Warning
- not implemented in MD3
- Parameters
-
| ethernet | handle on the Ethernet |
| isActivated | boolean to know if the communication is started or not |
- Returns
- status request information
◆ AGHAF_ETH_setEthernetDiagLineState()
AGHAF_ETH_setEthernetDiagLineState.
- Parameters
-
| ethernet | handle on the Ethernet bus |
| active | AGHAF_TRUE ? activate : deactivate |
- Returns
- status request information
- Examples
- Ethernet/main.cpp.
◆ AGHAF_ETH_setParam()
set a parameter from an ethernet card
- Warning
- not implemented in MD3
- Parameters
-
| ethernet | handle on the Ethernet |
| param | parameter to set |
| value | value to set |
- Returns
- status request information