14 #ifndef HOST_IO_UART_H_ 15 #define HOST_IO_UART_H_ 20 #include "Driver_USART.h" 25 #define STREAMING_HEADER_LEN (4) 26 #define HOST_RX_BUF_LEN (64) 27 #define HOST_RSP_HDR_LEN (4) 28 #define HOST_DEV_RSP_LEN (128) 29 #define HOST_CMD_RSP_LEN (64) 30 #define MAX_HOST_STREAMS (4) 31 #define HOST_CMD_RESP_ACK (0x80) 32 #define HOST_CMD_RESP_NACK (0xC6) 33 #define EVENT_STREAM_ID (0xFF) 57 #define HOST_PRO_INT_CMD_TAG (0x20) 58 #define HOST_PRO_INT_ISO_TAG (0x40) 59 #define HOST_PRO_INT_DEV_TAG (0x60) 62 #define HOST_PRO_CMD_X_RES_TAG (0x00) 63 #define HOST_PRO_CMD_W_CFG_TAG (0x01) 64 #define HOST_PRO_CMD_R_CFG_TAG (0x02) 65 #define HOST_PRO_CMD_W_REG_TAG (0x03) 66 #define HOST_PRO_CMD_R_REG_TAG (0x04) 69 #define HOST_PRO_CMD_WR_NAK_TAG (0x7F) 70 #define HOST_PRO_CMD_WR_ACK_TAG (0x80) 146 uint8_t
Host_IO_Init(ARM_DRIVER_USART *pDrv,
void *pBus,
void *pDevInfo,
void *spiSlaveParams, uint16_t slaveAddress);
171 #endif // HOST_IO_UART_H_ void Host_IO_Send(uint8_t *pMsg, size_t size, uint8_t encoding)
void Host_IO_Add_ISO_Header(uint8_t streamID, uint8_t *pStreamingPacket, size_t sizePayload)
This structure holds information to receive a packet of data to the host.
bool process_host_command(uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
void Host_IO_Receive(host_cmd_proc_fn_t process_host_command, uint8_t encoding)
This structure holds information regarding the Encoding and RLI interface parameters.
uint8_t Host_IO_Init(ARM_DRIVER_USART *pDrv, void *pBus, void *pDevInfo, void *spiSlaveParams, uint16_t slaveAddress)
void HOST_SignalEvent_t(uint32_t event)
Defines the HOST UART signal event handler.
bool(* host_cmd_proc_fn_t)(uint8_t, uint8_t *, uint8_t *, size_t *, size_t)
The Host Command Process Function ([IN]Command TAG, [IN]Commad Buffer, [OUT]Response Buffer...