12 #ifndef ISF_PROTOCOL_ADAPTER_H_
13 #define ISF_PROTOCOL_ADAPTER_H_
unsigned char uint8
This defines uint8 as unsigned char.
isf_status_t(* fnWrite_t)(void *apEndpointHandle, int32 offset, uint8 *pWriteBuffer, uint32 buffsize, uint32 nBytesWrite, comm_Flags_t aFlags)
This is the the function pointer signature for writing the data to a specified device.
This structure contains protocol-specific function pointers and properties.
uint32 comm_Id_t
This type is for a numeric channel identifier- index into an array of channels in the system...
isf_status_t(* fnDisconnectEndpoint_t)(void *apEndpointHandle)
This is the function pointer signature for closing the Endpoint.
isf_status_t(* fnStart_t)(void *apBusHandle)
This is the function pointer signature for starting the bus.
isf_status_t(* fnConnectToEndpoint_t)(void *apBusHandle, void *apDevice, void **apEndpointHandle)
This is the function pointer signature for getting the Endpoint handle.
comm_State_t(* fnGetState_t)(void *apBusHandle)
This is the function pointer signature for getting the state of the bus.
unsigned long uint32
This defines uint32 as unsigned long.
struct busHandle_struct busHandle_t
This structure is a declaration of a BusHandle type.
The isf_types.h file contains the ISF data type definitions and some of the globally used macros...
isf_status_t(* fnInit_t)(comm_Id_t aBusId, void *apBusHandle)
This is the function pointer signature for bus initialization.
isf_status_t(* fnStop_t)(void *apBusHandle, isf_duration_t aTimeout)
This is the function pointer signature for stopping the bus.
isf_status_t(* fnReleaseLock_t)(void *apBusHandle)
This is the function pointer signature for releasing the lock for a particular bus.
This structure is a declaration of a BusHandle type.
fnGetConfig_t fnGetConfig
uint8 comm_Flags_t
This is a bit array of flags governing device read/write behavior.
fnReleaseLock_t fnReleaseLock
uint32 isf_duration_t
ISF time duration in microseconds.
long int32
This defines int32 as long.
fnConfigure_t fnConfigure
isf_status_t(* fnConfigure_t)(void *apBusHandle, void *apBusConfig)
This is the function pointer signature for setting the configuration of the bus.
fnConnectToEndpoint_t fnGetEndPointAt
isf_status_t(* fnRead_t)(void *apEndpointHandle, int32 offset, void *apReadBuffer, uint32 buffsize, uint32 nBytesRead, comm_Flags_t aFlags)
This is the function pointer signature for reading the data from a specified device.
fnDisconnectEndpoint_t fnDisEndPoint
int32 isf_status_t
ISF return status type.
isf_comm.h defines the common types for the Communications Service Family of the Intelligent Sensing ...
enum comm_State_vals comm_State_t
This enum holds an enumerated value describing the state of a channel.
fnAcquireLock_t fnAcquireLock
isf_status_t(* fnAcquireLock_t)(void *apBusHandle, isf_duration_t aTimeout)
This is the function pointer signature for acquiring the lock for a particular bus.
isf_status_t(* fnGetConfig_t)(void *apBusHandle, void *apBusConfig)
This is the function pointer signature for getting the configuration of the bus.