36 myHComPort_ = CreateFile(
"\\\\.\\COM11", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
69 DWORD toWriteBytes = count;
74 WriteFile(
myHComPort_, buffer + offset, toWriteBytes, &writeBytes, NULL);
86 DWORD fromReadBytes = count;
94 dwCount = ComStat.cbInQue;
100 fromReadBytes = dwCount;
101 ReadFile(
myHComPort_, buffer + offset, fromReadBytes, &dwCount, NULL);
105 fromReadBytes = count;
106 ReadFile(
myHComPort_, buffer + offset, fromReadBytes, &dwCount, NULL);
int SILS_SIC_IF_RX(unsigned char *data_v, int count)
static SCIComPort sci_com_
int SILS_SIC_IF_init(void)
int SILS_SIC_IF_TX(unsigned char *data_v, int count)
int Send(unsigned char *buffer, size_t length, size_t offset)
int Receive(unsigned char *buffer, size_t length, size_t offset)