13 of 286
4 Serial Communication Routines Debug.Print send strings to Com1 via the system output queue CloseCom() terminate the use of a serial channel ComChannels() prepare for using multiple serial channels Console.Read() retrieve a character from Com1 via the system input queue Console.ReadLine() retrieve a line from Com1 via the system input queue Console.Write() send a string to Com1 via the system output queue Console.WriteLine() send a string to Com1 via the system output queue DefineCom() set the characteristics of a serial channel DefineCom3() set the characteristics of serial channel 3 OpenCom() prepare a serial channel for use StatusCom() determine the status of a serial channel Queue Management Routines ClearQueue() delete data from a queue GetQueue() retrieve data from a queue GetQueueBufferSize() determine the size of the data area of a queue GetQueueCount() determine the number of bytes of data in a queue GetQueueSpace() determine the amount of space available in a queue GetQueueStr() populate a string with characters from a queue OpenQueue() prepare a queue for use PeekQueue() copy data from a queue without removing it PutQueue() put data in a queue PutQueueByte() put a byte into a queue PutQueueStr() put the characters of a string in a queue StatusQueue() determine if a queue has data available Date/Time Routines GetDate() get the month, day, year corresponding to a date value GetDayNumber() compute the day number corresponding to a day of a year GetDayOfWeek() get the day of the week corresponding to a date value GetDayOfYear() get the ordinal day of the year corresponding to a date value GetTime() get the current hour, minute and second GetTimestamp() get the current date and time information PutDate() set the current month, day, year PutTime() set the current hour, minute and second PutTimeStamp() set the current date and time information Timer() get the current clock tick value Data Manipulation Routines FlipBits() reverse the order of bits in a byte HiByte() extract the high byte of a value HiWord() extract the high word of a value LoByte() extract the low byte of a value LoWord() extract the low word of a value MakeDword() construct a 32-bit value from two 16-bit values MakeWord() construct a 16-bit value from two 8-bit values MakeString() construct a string from a sequence of bytes MidWord() extract the middle two bytes of a 4-byte value SetBits() set the state of specified bits in a byte Shl() shift a value to the left Shr() shift a value to the right ToggleBits() change the state of specified bits in a byte