User`s guide

E - 2
K
A
DAK
KwikNet Sample Program Architecture
KNSAMOS.C
Application OS Interface
main() Sample program main entry point
sam_osshutdown() OS shutdown on exit
sam_ostkprep() Task create/prepare
sam_ostkstart() Task start
sam_record() Log function used by kn_dprintf()
print_task()
Print task
backg_task() Background task (AMX only)
rrproc() Restart Procedure (AMX only)
exproc() Exit Procedure (AMX only)
KNRECORD.C Message recording services
kn_loginit() Initialize data recording services
kn_logputc() Record one character
kn_logmsg() Record a message
kn_loggets() Get one recorded message from the recorded list
KNCONSOL.C Console driver
knconinit() Initialize console device for use
knconexit() Close console device upon exit
knconin() Get a character from the console device
knconins() Get a string from the console device
knconout() Send a character to the console device
knconouts() Send a string to the console device
kncon_logprep() Prepare to use console for data logging
kncon_logputc() Log a character to the console device
kncon_logdump() Log all recorded strings on the console device
kncon_parse() Parse a console command line
kncon_error() Generate an error message on the console device
KN8250S.C INS8250 (NS16550) UART driver
kn_iouart() All serial I/O device operations
Figure E-1 KwikNet Sample Program Procedures