176
"C" Programming Guide For Optimus S/R
Useful Function Call
We also provide some simple function calls for pairing with a Bluetooth device
easily.
Example Code
#include <lib_ops.h>
#include <ucos.h>
static const MENU_ENTRY PAIRING_ENTRY;
static const MENU_ENTRY DEVICELIST_ENTRY;
MENU SPP_MENU = { 2, 1, 0,
"Bluetooth",
{ (void*) &PAIRING_ENTRY,
(void*) &DEVICELIST_ENTRY}};
static const MENU_ENTRY PAIRING_ENTRY =
{ 0, 1, "1 Pairing", BTPairingTestMenu, 0 };
static const MENU_ENTRY DEVICELIST_ENTRY =
{ 0, 2, "2 Dev. List", FreqDevListMenu, 0 };
main()
{
while (1) prc_menu ((void*) &SPP_MENU);
}
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...