RemoteIR.
Dependents: RemoteIR_TestProgram SerialGPS_TestProgram StarBoardOrangeExpansion1 Door_Slamming_Device ... more
Revision 8:46e34d6ddbe4, committed 2010-08-21
- Comitter:
- shintamainjp
- Date:
- Sat Aug 21 13:28:50 2010 +0000
- Parent:
- 7:9452ba065449
- Child:
- 9:dcfdac59ef74
- Commit message:
Changed in this revision
ReceiverIR.h | Show annotated file Show diff for this revision Revisions of this file |
TransmitterIR.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ReceiverIR.h Sat Aug 21 11:05:57 2010 +0000 +++ b/ReceiverIR.h Sat Aug 21 13:28:50 2010 +0000 @@ -51,7 +51,7 @@ * Get data. * * @param format Pointer to format. - * @param buf Buffer of data. + * @param buf Buffer of a data. * @param bitlength Bit length of the buffer. * * @return Data bit length.
--- a/TransmitterIR.h Sat Aug 21 11:05:57 2010 +0000 +++ b/TransmitterIR.h Sat Aug 21 13:28:50 2010 +0000 @@ -13,9 +13,22 @@ #include "Semaphore.h" #include "RemoteIR.h" +/** + * IR transmitter class. + */ class TransmitterIR { public: + + /** + * Constructor. + * + * @param txpin Pin for transmit IR signal. + */ explicit TransmitterIR(PinName txpin); + + /** + * Destructor. + */ ~TransmitterIR(); typedef enum { @@ -25,7 +38,22 @@ Trailer } State; + /** + * Get state. + * + * @return Current state. + */ State getState(void); + + /** + * Set data. + * + * @param format Format. + * @param buf Buffer of a data. + * @param bitlength Bit length of the data. + * + * @return Data bit length. + */ int setData(RemoteIR::Format format, uint8_t *buf, int bitlength); private: