4D display working with Gecko board STK3600
Fork of 4dGENIE by
Diff: mbed_genie.h
- Revision:
- 3:11c49c49cd1a
- Parent:
- 2:f283764fe9b7
- Child:
- 6:f4d3977b0eae
--- a/mbed_genie.h Sun Feb 23 01:34:05 2014 +0000 +++ b/mbed_genie.h Sun Feb 23 17:32:37 2014 +0000 @@ -136,35 +136,36 @@ class Mbed4dGenie{ public: - Mbed4dGenie(PinName TxPin,PinName RxPin); - void genieAttachEventHandler (genieUserEventHandlerPtr handler); + Mbed4dGenie(PinName TxPin,PinName RxPin, PinName resetpin); + void genieAttachEventHandler (genieUserEventHandlerPtr handler); + uint16_t genieWriteStrU (uint16_t index, char *string); + uint16_t genieWriteStr (uint16_t index, char *string); + void genieWriteContrast (uint16_t value); + uint16_t genieWriteObject (uint16_t object, uint16_t index, uint16_t data); + bool genieDequeueEvent(genieFrame * buff); + uint16_t genieGetEventData (genieFrame * e); + bool genieEventIs(genieFrame * e, uint8_t cmd, uint8_t object, uint8_t index); + bool GenieReadable(void); + uint16_t genieDoEvents (void); + private: + void RxIrqHandler(void); uint8_t _genieGetchar(void); void _geniePutchar (uint8_t c); uint16_t _genieGetLinkState (void); void _genieSetLinkState (uint16_t newstate); bool _genieEnqueueEvent (uint8_t * data); - uint16_t genieWriteStrU (uint16_t index, char *string); - uint16_t genieWriteStr (uint16_t index, char *string); int _genieWriteStrX (uint16_t code, uint16_t index, char *string); - void genieWriteContrast (uint16_t value); - uint16_t genieWriteObject (uint16_t object, uint16_t index, uint16_t data); void _genieWaitForIdle (void); - bool genieDequeueEvent(genieFrame * buff); - uint16_t genieGetEventData (genieFrame * e); - bool genieEventIs(genieFrame * e, uint8_t cmd, uint8_t object, uint8_t index); void _geniePushLinkState (uint8_t newstate); void _geniePopLinkState (void); void _genieFlushSerialInput(void); void _handleError (void); void _genieFlushEventQueue(void); - bool GenieReadable(void); - uint16_t genieDoEvents (void); - - private: - void RxIrqHandler(void); + Serial _screen; Timer _t; + DigitalOut _reset; ////////////////////////////////////////////////////////////// // Pointer to the user's event handler function //