format

Writes formatted values to output device

Author Stef Mientki, Copyright © 2002 .. 2006, all rights reserved.
Adapted-by Joep Suijs, Albert Faber, Eur van Andel
Compiler >=2.2

Description

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)


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Private

Functions


API details

Global variables/contants

Procedures

Private

Functions


Related samples

Here are the list of samples which use this library:

16f648a16f648a_serial_print.jal
16f648a16f648a_serial_format.jal
16f648a16f648a_ds18b20_single.jal
16f72316f723_serial_print.jal
16f72316f723_serial_format.jal
16f7316f73_temperature_tc77.jal
16f7316f73_serial_print.jal
16f7316f73_serial_software.jal
16f7316f73_serial_format.jal
16f81916f819_ee25aa02e48_lcd.jal
16f81916f819_mcp2515_can_monitor.jal
16f81916f819_mcp2515_canid4_monitor.jal
16f876a16f876a_rtc_timeset.jal
16f876a16f876a_humidity_sht.jal
16f876a16f876a_rtc_lcd.jal
16f876a16f876a_tc77.jal
16f87716f877_temperature_tc77.jal
16f87716f877_serial_format.jal
16f87716f877_serial_print.jal
16f87716f877_serial_software.jal
16f87716f877_ds18b20_single.jal
16f877a16f877a_rtc_pcf8563.jal
16f877a16f877a_lcd_format.jal
16f877a16f877a_ds1307_sw.jal
16f877a16f877a_serial_software.jal
16f877a16f877a_ds1307_hw.jal
16f877a16f877a_serial_format.jal
16f877a16f877a_serial_print.jal
16f877a16f877a_rtc_lcd.jal
16f877a16f877a_ds18b20_single.jal
16f877a16f877a_rtc_timeset.jal
16f877a16f877a_temperature_tc77.jal
16f8816f88_temperature_tc77.jal
16f8816f88_ds18b20_single.jal
16f8816f88_serial_format.jal
16f8816f88_serial_print.jal
16f8816f88_serial_software.jal
16f88616f886_rtc_lcd_4mhz.jal
16f88616f886_rtc_lcd_125khz.jal
16f88616f886_rtc_lcd_20mhz.jal
16f88616f886_pwm_adc_freq.jal
16f88616f886_pwm_adc_res.jal
18f14k5018f14k50_temperature_tc77.jal
18f14k5018f14k50_serial_format.jal
18f14k5018f14k50_pll.jal
18f14k5018f14k50_serial_print.jal
18f245018f2450_ds18b20_single.jal
18f245018f2450_serial_print.jal
18f245018f2450_serial_format.jal
18f252018f2520_serial_print.jal
18f252018f2520_temperature_tc77.jal
18f252018f2520_serial_format.jal
18f255018f2550_serial_format.jal
18f255018f2550_serial_print.jal
18f255018f2550_temperature_tc77.jal
18f258518f2585_can_monitor.jal
18f258518f2585_1wire_ds1820.jal
18f258518f2585_canid4_monitor.jal
18f258518f2585_can_serial_hw.jal
18f258518f2585_canid4_serial_adapter.jal
18f258518f2585_can_serial_adapter.jal
18f25j1018f25j10_test_mlx90615.jal
18f262018f2620_temperature_tc77.jal
18f262018f2620_rtc_tmr3.jal
18f262018f2620_serial_format.jal
18f262018f2620_serial_print.jal
18f27j5318f27j53_dht11.jal
18f45218f452_ds18b20_single.jal
18f45218f452_serial_print.jal
18f45218f452_pressure.jal
18f45218f452_serial_software.jal
18f45218f452_temperature_tc77.jal
18f45218f452_serial_format.jal
18f455018f4550_temperature_tc77.jal
18f455018f4550_serial_format.jal
18f455018f4550_serial_software.jal
18f455018f4550_ds18b20_single.jal
18f455018f4550_serial_print.jal
18f458518f4585_canid4_monitor.jal
18f462018f4620_glcd_touch_stm032qvt_003.jal
18f462018f4620_temperature_tc77.jal
18f462018f4620_serial_format.jal
18f462018f4620_serial_print.jal
18f462018f4620_serial_software.jal
18f46k2218f46k22_glcd_touch_stm032qvt_003.jal
18f67j5018f67j50_usb_msd_pata_hard_disk.jal
18f67j5018f67j50_temperature_tc77.jal
18f67j5018f67j50_serial_format.jal
18f67j5018f67j50_fat32_usb_msd_sd_card.jal
18f67j5018f67j50_serial_software.jal
18f67j5018f67j50_fat32_usb_msd_pata_hard_disk.jal
18f67j5018f67j50_serial_print.jal
18f67j5018f67j50_usb_msd_sd_card.jal