Page 15 of 346 Start Back Next End ZBasic System Library 3 ZBasic Microcontrollers 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 Serial Communication Routines Debug.Print send strings to the debug console CloseCom() terminate the use of a serial channel ComChannels() prepare for using multiple serial channels Console.Read() retrieve a character from the console input queue Console.ReadLine() retrieve a line from the console input queue Console.Write() send a string to the console output queue Console.WriteLine() send a string to the console output queue ControlCom() specify flow control pins for a serial channel DefineCom() set the characteristics of a serial channel DefineCom3() set the characteristics of serial Com3 OpenCom() prepare a serial channel for use SerialIn() read a character from an input pin SerialOut() send a character or the characters of a string out on a pin 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 SearchQueue() search a queue for a data byte or sequence StatusQueue() determine if a queue has data available