Download C Programming Guide - Portable Series V3.01
Transcript
TABLE OF CONTENTS PREFACE .......................................................................................................... V 1 DEVELOPMENT ENVIRONMENT............................................................... 1 1.1 Directory Structure ........................................................................................................................1 1.2 Setup ................................................................................................................................................2 1.3 Development Flow ..........................................................................................................................3 1.3.1 Create Your Own “C” source program................................................................................3 1.3.2 Compile....................................................................................................................................4 1.3.3 Link..........................................................................................................................................4 1.3.4 Format Convertion .................................................................................................................6 1.3.5 Download Program to Flash Memory ..................................................................................6 1.4 C Compiler......................................................................................................................................7 1.4.1 Size of Types............................................................................................................................7 1.4.2 Representation Range of Integers .........................................................................................7 1.4.3 Floating Types.........................................................................................................................7 1.4.4 Alignment ................................................................................................................................7 1.4.5 Register and Interrupt Handling ..........................................................................................8 1.4.6 Reserved Words......................................................................................................................8 1.4.7 Extended Reserved Words.....................................................................................................8 1.4.8 Bit-Field Usage........................................................................................................................9 2 TERMINAL SPECIFIC FUNCTION LIBRARY ........................................... 11 2.1 System............................................................................................................................................11 2.1.1 Power On Reset (POR).........................................................................................................11 2.1.2 System Global Variables ......................................................................................................11 2.1.3 Security..................................................................................................................................14 2.1.4 Program Manager ................................................................................................................15 2.2 Reader............................................................................................................................................17 2.2.1 Barcode and Magnetic Card Decoding...............................................................................17 2.2.2 Code Type..............................................................................................................................17 2.2.3 Scanner Description Table...................................................................................................18 2.2.4 Scan Modes............................................................................................................................22 2.3 Keyboard Wedge Interface..........................................................................................................24 2.3.1 Definition of the WedgeSetting array ..................................................................................24 2.3.2 KBD / Terminal Type...........................................................................................................24 2.3.3 Capital Lock Status Setting .................................................................................................25 2.3.4 Capital Lock Auto-Detection ...............................................................................................25 2.3.5 Alphabets Case......................................................................................................................25 2.3.6 Digits Position .......................................................................................................................25 2.3.7 Shift / Capital Lock Keyboard.............................................................................................25 2.3.8 Digit Transmission................................................................................................................25 2.3.9 Inter-Character Delay..........................................................................................................25 2.3.10 Composition of Output String .............................................................................................25 ii