Web 51 - LIBW Library |
|
The libw library contains arithmetic, logic, I/O, and other functions.
Arithmetic and logic operations are described in section P-Instructions for arithmetics and program branches
- div2x2 div2x1 - divide 2-byte number by a 1-byte nubmer
- paddn paddn - add two numbers (any size)
- paddwi paddwi - add two 16-bit numbers
- pandwi pandwi - binary AND of two 16-bit numbers
- pbitwi pbitwi - TEST a 16-bit number
- pcmpbi pcmpbi - compare two 8-bit numbers
- pcmpwi pcmpwi, pcmpn - compare two 16-bit numbers, compare strings
- pshiftw pshiftw - shift unsigned 16-bit number left/right
- psubwi psubwi - subtract two 16-bit numbers
- pxorwi pxorwi - binary XOR of two 16-bit numbers
Physical I/O functions
- 1wire DS1Reset, DS1Rd, DS1Wr - Dallas 1-Wire bus control
- disp4 d_inst, d_data, d_clr, d_home, d_read, d_init - 2-line LCD control (over a 4-bit bus)
- ds1620 init_ds1620, read_ds1620 - write temperature from a DS1620 thermometer into a TCP channel
- i2c read_current, read_random - read data from I2C memory
- serial getchar, putchar, ... - communication over the serial line, described in Serial line support
- spi spiout, spiin - SPI bus control
Functions for output to the serial line
- drams DumpRAMtoSerial, PrintCrLf - dump processor memory in Hex to the serial line, write CR/LF to the serial line
- outdecb outDecb - write 8-bit number in decimal (Dec) format to the serial line
- outhexb OutHexb, PNibl - write 8-bit number in hexadecimal (Hex) format to the serial line, conversion principles are described in Converting 8-bit numbers to ASCII
- outstrg OutStrg - write text from processor memory to serial line
- pdebug pdebug - write 16-bit number in Hex format to serial line
Functions for output into TCP/IP channel
- senddecb sendDecb - write 8-bit number in Dec to TCP channel
- sendhexb sendHexb, sNibl - write 8-bit number in Hex to TCP channel
- sendstr send_string - write text from processor memory to TCP channel
Other functions and modules
- clone cloneEther, cloneIP, cloneGW - copy MAC a IP into pre-constructed packets
- clonep cloneIPpoint - copy IP address for establishing communication into preconstructed packets
- filecpu - filesystem header in the processor flash memory
- fileee - filesystem header in the processor eeprom
- http http, open_http - http processing
- ipconfig IP/MAC configuration detection in eeprom
- packet xmit_frame, send_pkt, rcv_pkt, ... - packet driver for RTL8019, described in Driver initialization, Transmitting packets, Receiving packets
- pcode pcode, pcall, ... - P-Code interpreter, described in P-Code Structure and Interpreter
- pe2s pe2s - copy a string from eeprom to processor data memory
- pmovb pmovb - copy 8-bit number between locations in processor data memory
- pmovbi pmovbi - move 8-bit constant to processor data memory
- pmovwi pmovwi - move 16-bit constant to processor data memory
- ps2s ps2s - copy string between locations in processor data memory
Notes
- modul.asm module source code
- modul.obj compiled module, part of libk
- functions exported by module are denoted with this font
Described sources of this library are freely available - see DOWNLOAD.
| Web51 description | News | FAQ | ORDER FORM | DOWNLOAD | Links |
| (c)Copyright 2000 - 2002, HW server & Radek Benedikt
Web51@HW.cz, Web51.HW.cz |
|