Another Oops.. Those are defined to be
// Key code sent with an ESquirt2Api event
#define ESquirtKeyChr 'S'
// Modifier code sent (same as commandKeyMask)
// Note -- MUST include appEvtHookKeyMask or PalmOS generates a
// 'click' sound (ie, a keyclick) -- very annoying!
#define ESquirtModifier (0x0008 | appEvtHookKeyMask)
// Events
typedef enum
{
eSquirtSirReady, // Serial mode Ir Wakeup Handler
went off
eSquirtSirRef, // Received a Reference via SIR
eSquirtIrdaSniff, // Received an Irda Discover frame
eSquirtIrdaRef, // Received a Reference via Irda
eSquirtIrdaDone, // For ProvideInterface calls -- a
complete Irda txn done
eSquirtIrdaConnect, // hp:beacon service connect
eSquirtObexConnect // OBEX:ESquirt service connect
} ESquirt2KeyEvents;
But basically could be anything that's not going to be entered by a user ;)
Note... this source (including interesting Irda transfers, a full Obex/irda
implementation for GET and PUT, Ultra-irda code among other things) is being
(will soon be?) released as GNU GPL open source from HP as part of the
cooltown effort, I'll post when its finally released. You can sign up here
http://cooltown.hp.com/cooltownreg/index.asp
- John
-----Original Message-----
From: Jim Garozzo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 12:37 PM
To: Palm Developer Forum
Subject: Re: EvtWaitForever - Generating an Event
OOhhh..YES! Worked like a charm!
So, do you not have to initialize ESquirtKeyChr and eSquirtSirReady to any
particular value?
Thanks a lot for you help!!
Jim
Schettino, John <[EMAIL PROTECTED]> wrote in message
news:57197@palm-dev-forum...
>
> This is what I use in my wakeup handler, it works for me:
>
> (posted feb 21 2001 found on www.escribe.com search for "wakeup")
>
> http://www.escribe.com/computing/pcpqa/m35383.html
>
>
> > -----Original Message-----
> > From: Jim Garozzo [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 19, 2001 9:27 AM
> > To: Palm Developer Forum
> > Subject: EvtWaitForever - Generating an Event
> >
> >
> > I give up!!
> >
> > I'm trying to use the new SrmWakeUpHandler but there is a
> > slight problem.
> >
> > EvtWaitForever
> >
> > I want to generate an event to make the EvtGetEvent(&event,
> > evtWaitForever);
> > stop waiting forever.
> >
> > Anybody know how I can just generate an event that will be set in an
> > interrupt?
> >
> > I've looked at EvtWakeup but it didn't help me.
> >
> > I tried creating an event:
> >
> > MemSet(&newEvent, sizeof(EventType), 0);
> > newEvent.eType = nilEvent;
> > EvtAddEventToQueue(&newEvent);
> >
> > But, it didn't help...
> >
> > Suggestions, comments, etc...i've search the archive and couldn't find
> > anything that talked about the bypass of evtWaitForever
> > except adding a
> > variable that can be modified...and I don't want to do that.
> > I know i can
> > but that is going to defeat the purpose of using the Interrupt.
> >
> > Thanks!
> >
> > Jim
> >
> > --
> > **************************************************************
> > James P. Garozzo - Connectivity Engineer
> > White-Rodgers - Affton, MO
> > Phone: 314.577.5201 Fax: 314.577.5248
> > E-mail: [EMAIL PROTECTED]
> > **************************************************************
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to
> > unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
> >
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/