Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.
Dependents: CsrLocationDemo CsrLocationDemo
Fork of CsrLocation by
Diff: CsrLocation.h
- Revision:
- 1:bbaf9b8d646a
- Parent:
- 0:aba381fc8158
- Child:
- 2:d4fe184925f2
--- a/CsrLocation.h Mon Mar 24 08:23:25 2014 +0000 +++ b/CsrLocation.h Tue Mar 25 05:26:26 2014 +0000 @@ -296,7 +296,7 @@ /** Debug serial port to print debug information */ Serial *pSerialDebug; /** location serail port to communicate between mbed host side and location chip */ - Serial *pSerialLoc; + RawSerial *pSerialLoc; /** GPIO pin to control location chip on, a rising edge is uset to activate location chip. Please note, before activate chip, reset pin should be pull high */ DigitalOut *pPinOnoff; /** GPIO pin to control location chip reset, low level will keep location chip in hibernation state and high level will permit location chip to be activated */ @@ -315,13 +315,13 @@ typedef struct CsrLocInst { CsrBool bStopFlag; + CsrBool bPwrModeRsp; + CsrBool bVerRsp; eCsrLocState locState; eProtoState protoState; ePowerMode pwrMode; CsrUint32 baudRate; - CsrBool isOspHeader; - CsrBool isNmeaHeader; CsrInt32 computedCheckSum; CsrInt32 checksum; CsrInt32 msgSize; @@ -334,14 +334,14 @@ tLocSvStatus svStatus; /* 2 kind of messages contribute the svStaus */ Serial *pSerialDebug; - Serial *pSerialLoc; + RawSerial *pSerialLoc; DigitalOut *pPinOnoff; DigitalOut *pPinReset; CsrUint8 serialBuf[MAX_SERIAL_BUF_LEN]; /* buffer the serial data from uart callback function */ CsrUint8 serialPkt[MAX_SERIAL_PKT_LEN]; /* decoded osp data */ - CsrUint16 in; - CsrUint16 out; + CsrUint32 in; + CsrUint32 out; csr_app_output_callback appOutCb; csr_app_event_callback appEventCb;