Author | Stef Mientki, Copyright © 2002 .. 2006, all rights reserved. |
Adapted-by | Joep Suijs, Albert Faber, Eur van Andel |
Compiler | >=2.2 |
Outputs variables to output device. Writes formatted signed/unsiged bytes/words to the specified output device. Decimal (with fraction), Hex and Time formats available. Example: var sword BHL = -684 ; send the signed word to the LCD display ; total field width 6 chars, including sign and decimal ; with 2 digits behind the decimal point format_sword_dec(LCD_char,BHL,6,2) ; and now send the same signed word to the serial port format_sword_dec(Serial_HW_data,BHL,6,2)
No dependency found
format_time_hms(volatile byte out device,byte in HH, byte in MM, byte in SS)
format_byte_dec(volatile byte out device, byte in data, byte in n_tot, byte in n2)
format_time_hm_word(volatile byte out device,word in minutes)
format_sbyte_dec(volatile byte out device, sbyte in data, byte in n_tot, byte in n2)
format_sdword_dec(volatile byte out device, sdword in data, byte in n_tot, byte in n2)
format_dword_dec(volatile byte out device, dword in data, byte in n_tot, byte in n2)
format_dword_hex(volatile byte out device, dword in data)
format_word_dec(volatile byte out device, word in data, byte in n_tot, byte in n2)
format_byte_hex(volatile byte out device, byte in data)
format_word_hex(volatile byte out device, word in data)
format_sword_dec(volatile byte out device, sword in data, byte in n_tot, byte in n2)
format_time_hm(volatile byte out device,byte in HH, byte in MM)
_write_real_digit(volatile byte out device)
_write_digit(volatile byte out device, byte in digit, bit in point)
var bit _format_signed = false
No documentation found
var byte _format_digit
No documentation found
var byte _format_leader
global vars
var byte _format_sign
No documentation found
format_time_hms(volatile byte out device,byte in HH, byte in MM, byte in SS)
Displays a time in HH:MM:SS notation at specified position Hours and minutes are specified separate
format_byte_dec(volatile byte out device, byte in data, byte in n_tot, byte in n2)
writes decimal formatted byte to output device the output can be specified as a fraction n_tot = the total length (including sign and decimal point) n2 = number of digits behind the point
format_time_hm_word(volatile byte out device,word in minutes)
Displays a time in HH:MM notation at specified position the input is specified in minutes
format_sbyte_dec(volatile byte out device, sbyte in data, byte in n_tot, byte in n2)
writes decimal formatted signed byte to output device the output can be specified as a fraction n_tot = the total length (including sign and decimal point) n2 = number of digits behind the point
format_sdword_dec(volatile byte out device, sdword in data, byte in n_tot, byte in n2)
writes decimal formatted signed dword to output device the output can be specified as a fraction n_tot = the total length (including sign and decimal point) n2 = number of digits behind the point
format_dword_dec(volatile byte out device, dword in data, byte in n_tot, byte in n2)
writes decimal formatted dword to output device the output can be specified as a fraction n_tot = the total length (including sign and decimal point) n2 = number of digits behind the point
format_dword_hex(volatile byte out device, dword in data)
writes hex formatted dword to output device
format_word_dec(volatile byte out device, word in data, byte in n_tot, byte in n2)
writes decimal formatted word to output device the output can be specified as a fraction n_tot = the total length (including sign and decimal point) n2 = number of digits behind the point
format_byte_hex(volatile byte out device, byte in data)
writes hex formatted byte to output device
format_word_hex(volatile byte out device, word in data)
writes hex formatted word to output device
format_sword_dec(volatile byte out device, sword in data, byte in n_tot, byte in n2)
writes decimal formatted signed word to output device the output can be specified as a fraction n_tot = the total length (including sign and decimal point) n2 = number of digits behind the point
format_time_hm(volatile byte out device,byte in HH, byte in MM)
Displays a time in HH:MM notation at specified position Hours and minutes are specified separate
_write_real_digit(volatile byte out device)
_write_digit(volatile byte out device, byte in digit, bit in point)