39 #ifndef HOST_INTERFACE_SERVICE_H_ 40 #define HOST_INTERFACE_SERVICE_H_ 46 #define HOST_INTERFACE_OK 0 47 #define HOST_INTERFACE_VERSION ((1 << 4) | (0 & 0xF)) // Host Interface Version 1.0 77 #define HOST_INTERFACE_EVENT_SEND_COMPLETE \ 79 #define HOST_INTERFACE_EVENT_RECEIVE_COMPLETE \
168 #endif // HOST_INTERFACE_SERVICE_H_ struct _host_interface_handle_ host_interface_handle_t
struct _host_interface_config_ host_interface_config_t
comm_interface_t * pCommInterface
int32_t HOST_Configure(host_interface_handle_t *pHandle, void *pConfigData)
The function to Configure the Host.
int32_t HOST_Receive(host_interface_handle_t *pHandle, uint8_t *pData, uint32_t *pRecvSize, uint32_t size, BlockRead_t process)
The function to receive data from the host.
enum _comm_instance_type_ comm_instance_type_t
The comm_interface.h file describes the interface definition for the communication interface...
int32_t HOST_Send(host_interface_handle_t *pHandle, uint8_t *pData, uint32_t size)
The function to Send the data to the host.
enum _comm_type_ comm_type_t
void(* BlockRead_t)(host_interface_handle_t *pHandle, void *pData)
comm_instance_type_t instanceType
void(* Host_Event_t)(uint32_t event)
int32_t HOST_Initialize(host_interface_handle_t *pHandle, comm_type_t type, void *pCommInstance, comm_instance_type_t inType, Host_Event_t event, void *pInData)
The function to Initialize the Host.