The C Programmer’s Guide to the Mosaic HandheldTable of ContentsPART 1 GETTING STARTED Introduction. How to Use This Manual Chapter 1: Getting to Know Your Handheld Instrument Chapter 2: Powering Your Handheld PART 2 PROGRAMMING THE MOSAIC HANDHELD Chapter 4: The IDE: Writing, Compiling, Downloading and Debugging Programs Chapter 5: Making Effective Use of Memory Chapter 6: Real Time Programming Chapter 7: Failure and Run-Time Error Recovery Chapter 8: Programming the Graphical User Interface PART 3 COMMUNICATIONS, MEASUREMENT, AND CONTROL Chapter 9: Digital and Timer-Controlled I/O Chapter 11: Serial Communications Chapter 12: The Battery-Backed Real Time Clock Chapter 13: Customizing the Handheld's I/O PART 4: REFERENCE DATA |
Glossary A B C DF G H I K LM N P R S T UVWXY uint New_Object ( uint object_type )
Type Function Input Parameters object_type A 16 bit number that refers to an object type. Valid object types are GRAPHIC, FONT, TEXTBOX, ACTION_KEY, DATA_ENTRY_KEY, SHIFT_KEYPLOT, and SCREEN. Return Value A 16 bit number that refers to the newly created object. This number should be stored into an object reference variable which can later be used to set the properties of the object, get the properties of the object, load the object into a screen, or unload the object from a screen. Description A method that creates new objects. Errors include: HEAP_FULL and INVALID_OBJECT. Usage graphicStop = New_Object( GRAPHIC );
Library library.c
NO_BATTERY
Type Constant Return Value Long Description The name of a value of the BATTERY_STATE property of the GUI_BATTERY object that indicates the batteries are not present. Usage If ( Get_Property ( GUI_BATTERY, BATTERY_STATE ) == NO_BATTERY ) { printf(“There are no batteries.\n”); }
Library library.c
See Also BATTERY_STATE, GUI_BATTERY, FULL_BATTERY, LOW_BATTERY, MEDIUM_BATTERY NO_ERROR
Type Constant Return Value Integer Description The name of a constant that indicates there was no error. Usage Initialize_GUI(START_GUI_HEAP, END_GUI_HEAP); If(Read_Error() == NO_ERROR) { printf(“No error was found.\n”); }
Library library.c
NO_EVENT
Type Constant Return Value Long Description The name of a value of the keypad property KEY_EVENT and PRIOR_KEY_EVENT that indicates there was no event. Usage If(Get_Property(GUI_KEYPAD0, KEY_EVENT)==NO_EVENT) { printf(“There was no event.\n”); }
Library library.c
See Also PRESS_EVENT, HOLD_EVENT, RELEASE_EVENT NO_KEY
Type Constant Return Value Integer Description The name of a value of the keypad property KEY_TYPE and PRIOR_KEY_TYPE that indicates there was no key that was pressed. Usage If(Get_Property(GUI_KEYPAD0, KEY_TYPE)==NO_KEY) { printf(“No key was pressed.\n”); }
Library library.c
See Also KEY_TYPE, PRIOR_KEY_TYPE NUM_OBJECTS
Type Constant Return Value Integer Description The name of a screen property that contains the number of objects currently loaded into a screen. This property is read only. Usage longNumObjects = Get_Property(GUI_SCREEN0, NUM_OBJECTS);
Library library.c
NUM_SHIFT_DOWN_VALUES
Type Constant Return Value Integer Description The name of a read only data entry key property that contains the number of key codes currently associated with the key when the SHIFT_STATE equals to SHIFT_DOWN. NUM_SHIFT_DOWN_VALUES is automatically incremented when a key code is associated with a shift down value property of a data entry key. Usage longNumValues = Get_Property(dataentrykey0, NUM_SHIFT_DOWN_VALUES);
Library library.c
See Also NUM_SHIFT_UP_VALUES, SHIFT_DOWN, SHIFT_STATE NUM_SHIFT_UP_VALUES
Type Constant Return Value Integer Description The name of a read only data entry key property that contains the number of key codes currently associated with the key when the SHIFT_STATE equals to SHIFT_UP. NUM_SHIFT_UP_VALUES is automatically incremented when a key code is associated with a shift up value property of a data entry key. Usage longNumValues = Get_Property(dataentrykey0, NUM_SHIFT_UP_VALUES);
Library library.c
See Also NUM_SHIFT_DOWN_VALUES, SHIFT_STATE, SHIFT_UP |
Home|Site Map|Products|Manuals|Resources|Order|About Us
Copyright (c) 2006 Mosaic Industries, Inc.
Your source for single board computers, embedded controllers, and operator interfaces for instruments and automation