RemoteIR.

Dependents:   RemoteIR_TestProgram SerialGPS_TestProgram StarBoardOrangeExpansion1 Door_Slamming_Device ... more

Embed: (wiki syntax)

« Back to documentation index

TransmitterIR Class Reference

TransmitterIR Class Reference

IR transmitter class. More...

#include <TransmitterIR.h>

Public Member Functions

 TransmitterIR (PinName txpin)
 Constructor.
 ~TransmitterIR ()
 Destructor.
State getState (void)
 Get state.
int setData (RemoteIR::Format format, uint8_t *buf, int bitlength)
 Set data.

Detailed Description

IR transmitter class.

Definition at line 18 of file TransmitterIR.h.


Constructor & Destructor Documentation

TransmitterIR ( PinName  txpin ) [explicit]

Constructor.

Parameters:
txpinPin for transmit IR signal.

Definition at line 18 of file TransmitterIR.cpp.

~TransmitterIR (  )

Destructor.

Definition at line 35 of file TransmitterIR.cpp.


Member Function Documentation

TransmitterIR::State getState ( void   )

Get state.

Returns:
Current state.

Definition at line 43 of file TransmitterIR.cpp.

int setData ( RemoteIR::Format  format,
uint8_t *  buf,
int  bitlength 
)

Set data.

Parameters:
formatFormat.
bufBuffer of a data.
bitlengthBit length of the data.
Returns:
Data bit length.

Definition at line 59 of file TransmitterIR.cpp.