|
AGHAF 5.0.9
Annecy electronique Generic Hardware Access Framework
|
#include <stdint.h>#include "aghaf_importexport.h"Go to the source code of this file.
Classes | |
| struct | AGHAF_DeviceInfo |
| structure containing the informtions about a device More... | |
| struct | AGHAF_EventInfo |
| generic stucture to read an event in a callback More... | |
| enum | AGHAF_BOOL { AGHAF_FALSE = 0 , AGHAF_TRUE = 1 } |
| enumerator to get a bool definition More... | |
| typedef void(* | AGHAF_Callback) (AGHAF_Event event, void *userContext) |
| callback for the devices hotplug management | |
| AGHAF_Status | AGHAF_closeDevice (AGHAF_Device device) |
| close the device | |
| enum | AGHAF_ConnectionMode { AGHAF_OFFLINE , AGHAF_USB , AGHAF_ETH } |
| deprecated More... | |
| AGHAF_Status | AGHAF_deregisterCallback (AGHAF_Callback callback) |
| Deregister a callback. | |
| typedef void * | AGHAF_Device |
| handle on an exxotest device | |
| void | AGHAF_Device_freeFriendlyName (char *friendlyName) |
| Free the memory allocated with AGHAF_Device_getFriendlyNameEthCard. | |
| AGHAF_ConnectionMode | AGHAF_Device_getConnectionMode (AGHAF_Device device) |
| AGHAF_Device_getConnectionMode. | |
| void | AGHAF_Device_getFriendlyNameEthCard (AGHAF_Device device, char **name) |
| AGHAF_Device_getFriendlyNameEthCard. | |
| AGHAF_Status | AGHAF_Device_getTimestamp (AGHAF_Device device, uint64_t *timestamp) |
| Return the current timestamp on the device. | |
| AGHAF_Status | AGHAF_Device_getUsbInfo (AGHAF_Device device, uint16_t *vid, uint16_t *pid, uint16_t *rev) |
| AGHAF_Device_getUsbInfo. | |
| enum | AGHAF_DeviceEvent { AGHAF_Device_noEvent , AGHAF_Device_Arrival , AGHAF_Device_Leave , AGHAF_Device_Present } |
| device event fot hotplug management More... | |
| uint8_t const * | AGHAF_DeviceEvent_getHardwareUniqueId (AGHAF_Event event) |
| return the hardware unique id from the device which emitted the device event | |
| char const * | AGHAF_DeviceEvent_getProductName (AGHAF_Event event) |
| return the product name from the device which emitted the device event | |
| char const * | AGHAF_DeviceEvent_getProductNumber (AGHAF_Event event) |
| return the product number from the device which emitted the device event | |
| char const * | AGHAF_DeviceEvent_getSerialNumber (AGHAF_Event event) |
| return the serial number from the device which emitted the device event | |
| typedef struct AGHAF_DeviceInfo | AGHAF_DeviceInfo |
| structure containing the informtions about a device | |
| enum | AGHAF_DeviceState { AGHAF_DeviceState_error = 0 , AGHAF_DeviceState_boot , AGHAF_DeviceState_ready } |
| current state of the device (in the boot or in the application part of the firmware) More... | |
| typedef enum AGHAF_DeviceState | AGHAF_DeviceState |
| current state of the device (in the boot or in the application part of the firmware) | |
| typedef void * | AGHAF_Event |
| Typedef of a native event handle that can be used to wait for events. | |
| AGHAF_Status | AGHAF_Event_getInfo (AGHAF_Event event, AGHAF_EventInfo *info) |
| AGHAF_Event_getInfo. | |
| typedef struct AGHAF_EventInfo | AGHAF_EventInfo |
| generic stucture to read an event in a callback | |
| void | AGHAF_freeDeviceList (AGHAF_DeviceInfo *devices) |
| Free the memory allocated with AGHAF_getDeviceList. | |
| AGHAF_Status | AGHAF_getDeviceByHardID (uint8_t const *hardwareID, AGHAF_Device *device) |
| AGHAF_getDeviceByHardID. | |
| AGHAF_Status | AGHAF_getDeviceBySN (char const *productNumber, char const *serialNumber, AGHAF_Device *device) |
| Return the handle on the specified device. | |
| AGHAF_Status | AGHAF_getDeviceCount (uint32_t *count) |
| Return the number of devices onnected. | |
| AGHAF_Status | AGHAF_getDeviceInfo (AGHAF_Device device, AGHAF_DeviceInfo *deviceInfo) |
| Return the informations from a device. | |
| AGHAF_Status | AGHAF_getDeviceList (AGHAF_DeviceInfo **devices, uint32_t *size) |
| Provide the list of devices connected. | |
| AGHAF_Status | AGHAF_getServiceVersion (uint32_t *version) |
| Return the version from aeds. | |
| uint32_t | AGHAF_getVersion (void) |
| Return the version from Aghaf. | |
| const char * | AGHAF_getVersionString (void) |
| Return the version from Aghaf. | |
| void | AGHAF_initialize (void) |
| Initialize Aghaf library. | |
| AGHAF_Status | AGHAF_openDevice (AGHAF_Device device) |
| Open a device. | |
| AGHAF_Status | AGHAF_refreshDeviceList (void) |
| Call the device event callbacks with the devices connected. | |
| AGHAF_Status | AGHAF_registerCallback (AGHAF_Callback callback, void *userContext) |
| Register a callback for the device event. | |
| enum | AGHAF_Status { AGHAF_STATUS_OK = 0 , AGHAF_ERROR_PARAM = 1 , AGHAF_ERROR_NOT_ENOUGH_MEMORY = 2 , AGHAF_ERROR_OUT_OF_MEMORY = 3 , AGHAF_ERROR_NOT_IMPLEMENTED = 4 , AGHAF_ERROR_END_REACHED = 5 , AGHAF_INTERNAL_ERROR , AGHAF_ERROR_CONNECTION = 7 , AGHAF_ERROR_BUS_NOT_FOUND = 8 , AGHAF_ERROR_PENDING = 9 , AGHAF_ERROR_WRONG_STATE = 10 , AGHAF_ERROR_NOT_ENOUGH_BUS = 11 , AGHAF_WRONG_SERVICE_VERSION = 12 , AGHAF_TIMEOUT_COM = 13 , AGHAF_DEPRECATED = 14 , AGHAF_ERROR_SEQUENCE = 15 , AGHAF_ERROR_FIFOFULL = 16 , AGHAF_ERROR_ALREADY_OPEN = 17 , AGHAF_ERROR_BUSY = 18 , AGHAF_ERROR_NOMORECHANNEL = 19 , AGHAF_ERROR_UNKNOWN = 20 , AGHAF_ERROR_WRONG_SESSION_TYPE = 21 , AGHAF_ERROR_NO_DATA = 22 , AGHAF_ERROR_NOT_SUPPORTED = 23 , AGHAF_ERROR_UNINITIALIZED = 0xFF } |
| enumerator to define the error type in aghaf functions More... | |
| enum | AGHAF_TypeEvent { AGHAF_TypeNoEvent , AGHAF_TypeDeviceEvent , AGHAF_TypeEthernetEvent , AGHAF_TypeCanEvent , AGHAF_TypeDoCanEvent } |
| type of event received in a callback More... | |
| void | AGHAF_uninitialize (void) |
| Uninitialize Aghaf library. | |