Thursday, May 05, 2005

Modifying the beam receive status

It has been a long time since TamsPalm last contained useable code. However, say hello to another code that can be used in any way you wish: the beam receive routines.
We all know the beam receive feature of handhelds. It decides if a handheld should receive beramed data or keep its infrared detector powered off. The system preferences contain a value that controls this behaviour, but like many other PalmOS goodies, it is unimplemented. Developers wanting to changwe this value have to use the exchange manager. This sample code accomplishes these tasks:
Boolean getIrState()
{
Boolean state;
UInt16 irLibRefNum;
UInt16 len;
// Checks if Irda is present at program start and gets irLibRefNum
SysLibFind("IrDA Library", &irLibRefNum);
len=sizeof(state);
ExgLibControl(irLibRefNum, irGetScanningMode, &state, &len);
return state;
}

void setIrState(Boolean state)
{
UInt16 irLibRefNum;
UInt16 len;
// Checks if Irda is present at program start and gets irLibRefNum
SysLibFind("IrDA Library", &irLibRefNum);
len=sizeof(state);
ExgLibControl(irLibRefNum, irSetScanningMode, &state, &len);

These routines compiled well under PODS 1.1. They should also work with MetroWerks CodeWarrior and other tools. If you are unsure if the IR library is available on the device that you run, check the return value of SysLibFind. Have fun coding!

5 Comments:

Blogger ninest123 Ninest said...

ninest123 12.30
prada handbags, tory burch outlet, louis vuitton, polo ralph lauren outlet, louboutin outlet, ray ban sunglasses, louis vuitton outlet, louis vuitton, louis vuitton outlet, longchamp outlet, replica watches, christian louboutin outlet, louboutin shoes, jordan shoes, longchamp outlet, polo ralph lauren outlet, replica watches, michael kors outlet, ray ban sunglasses, louis vuitton, michael kors outlet, nike free, michael kors outlet, burberry, longchamp, cheap oakley sunglasses, gucci outlet, ugg boots, michael kors outlet, michael kors, ugg boots, oakley sunglasses, ray ban sunglasses, nike air max, ugg boots, uggs on sale, tiffany and co, michael kors outlet, oakley sunglasses, prada outlet, tiffany jewelry, burberry outlet online, oakley sunglasses, ugg boots, nike air max, nike outlet, louboutin, chanel handbags, oakley sunglasses

3:03 AM  
Blogger ninest123 Ninest said...

north face, nike roshe, vans pas cher, replica handbags, air force, timberland, lululemon, sac longchamp, ralph lauren pas cher, vanessa bruno, hollister pas cher, true religion jeans, air jordan pas cher, true religion jeans, nike huarache, hermes, true religion outlet, hollister, michael kors, nike air max, michael kors, nike blazer, michael kors, ralph lauren uk, longchamp pas cher, hogan, lacoste pas cher, true religion jeans, nike trainers, mulberry, michael kors, nike free, oakley pas cher, louboutin pas cher, longchamp, north face, nike roshe run, coach outlet, new balance pas cher, ray ban uk, ray ban pas cher, abercrombie and fitch, tn pas cher, nike air max, sac guess, nike air max, air max, burberry, converse pas cher, nike free run uk, coach purses

3:05 AM  
Blogger ninest123 Ninest said...

louboutin, reebok shoes, s5 cases, valentino shoes, iphone 5s cases, herve leger, gucci, beats by dre, ralph lauren, instyler, vans shoes, new balance, wedding dresses, north face outlet, nike roshe, hollister, nike air max, mac cosmetics, ray ban, abercrombie and fitch, ferragamo shoes, nike air max, p90x workout, jimmy choo shoes, insanity workout, ghd, lululemon, mont blanc, converse, asics running shoes, nfl jerseys, iphone 6s cases, birkin bag, bottega veneta, iphone 6 plus cases, baseball bats, vans, soccer shoes, north face outlet, iphone 6 cases, celine handbags, hollister, soccer jerseys, oakley, iphone cases, giuseppe zanotti, chi flat iron, timberland boots, mcm handbags, ipad cases, babyliss, iphone 6s plus cases

3:07 AM  
Blogger ninest123 Ninest said...

links of london, moncler, ugg pas cher, sac louis vuitton pas cher, moncler, louis vuitton, bottes ugg, canada goose, moncler, pandora charms, marc jacobs, canada goose, supra shoes, karen millen, canada goose outlet, barbour, doke gabbana outlet, montre pas cher, canada goose, pandora jewelry, hollister, pandora charms, ugg,uggs,uggs canada, canada goose uk, louis vuitton, moncler, coach outlet, pandora jewelry, doudoune canada goose, juicy couture outlet, thomas sabo, ugg boots uk, barbour jackets, louis vuitton, moncler, toms shoes, ugg,ugg australia,ugg italia, replica watches, swarovski, moncler outlet, canada goose, swarovski crystal, lancel, moncler, wedding dresses, juicy couture outlet, louis vuitton, canada goose outlet, moncler, converse outlet
ninest123 12.30

3:09 AM  
Blogger raybanoutlet001 said...

ralph lauren
cheap nfl jerseys
ugg boots
pandora outlet
ray ban sunglasses
coach outlet online
michael kors outlet
coach outlet online
armani exchange
polo ralph lauren

5:51 AM  

Post a Comment

<< Home