35 myHComPort_ = CreateFile(
"\\\\.\\COM13", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
68 DWORD toWriteBytes = count;
73 WriteFile(
myHComPort_, buffer + offset, toWriteBytes, &writeBytes, NULL);
85 DWORD fromReadBytes = count;
93 dwCount = ComStat.cbInQue;
99 fromReadBytes = dwCount;
100 ReadFile(
myHComPort_, buffer + offset, fromReadBytes, &dwCount, NULL);
104 fromReadBytes = count;
105 ReadFile(
myHComPort_, buffer + offset, fromReadBytes, &dwCount, NULL);
int Send(unsigned char *buffer, size_t length, size_t offset)
int Receive(unsigned char *buffer, size_t length, size_t offset)
int SILS_SCI_UART_IF_init(void)
int SILS_SCI_UART_IF_TX(unsigned char *data_v, int count)
static SCIComPortUart sci_com_uart_
int SILS_SCI_UART_IF_RX(unsigned char *data_v, int count)