DevSlashLirc
Public Member Functions | List of all members
LircCodeLircDevice Class Reference

This class is a LIRC_MODE_LIRCCODE device as per lirc(4). More...

#include <LircCodeLircDevice.h>

Inheritance diagram for LircCodeLircDevice:
Inheritance graph
[legend]
Collaboration diagram for LircCodeLircDevice:
Collaboration graph
[legend]

Public Member Functions

 LircCodeLircDevice (const char *path=defaultFilename)
 
 LircCodeLircDevice (const LircDevice &orig)
 
virtual bool open ()
 
bool isMode2 () const
 Always returns false. More...
 
bool isLircCode () const
 Always returns true. More...
 
void report (std::ostream &stream=std::cout) const
 Prints a listing of the properties implemented on the stream supplied. More...
 
uint32_t readCode ()
 
bool writeCode (uint32_t code)
 
- Public Member Functions inherited from LircDevice
bool close ()
 
virtual ~LircDevice ()
 
bool isValid () const
 
milliseconds_t getBeginTimeout () const
 
void setBeginTimeout (milliseconds_t timeout)
 
bool canSend () const
 
bool canSetTransmitterMask () const
 
bool canRec () const
 
bool canSetRecTimeout () const
 
bool canSendPulse () const
 
bool canSendLircCode () const
 
bool canRecMode2 () const
 
bool canRecLircCode () const
 
unsigned getNumberTransmitters () const
 Return the number of transmitters as reported from the device. More...
 
int setTransmitterMask (uint32_t mask)
 Enable the set of transmitters specified in val, which contains a bit mask where each enabled transmitter is a 1. More...
 
int setRecTimeout (int arg)
 Set the integer value for IR inactivity timeout (microseconds). More...
 
int setRecTimeoutReports (bool enable)
 Enable or disable timeout packages. More...
 

Additional Inherited Members

- Static Public Attributes inherited from LircDevice
static const char * version = "LircDevice " VERSION
 
static const char * defaultFilename = "/dev/lirc0"
 
static const milliseconds_t defaultBeginTimeout = 5000U
 
static const uint32_t INVALID = UINT32_MAX
 
- Protected Member Functions inherited from LircDevice
void report (const char *name, bool value, std::ostream &stream) const
 
bool reportValidity (std::ostream &stream=std::cout) const
 
int ioctl (uint32_t cmd, uint32_t arg)
 
bool canDo (uint32_t mask) const
 
 LircDevice (const char *path=defaultFilename, milliseconds_t beginTimeout=defaultBeginTimeout)
 
 LircDevice (const LircDevice &orig)
 
- Protected Attributes inherited from LircDevice
bool valid
 
const char * fileName
 
int fileDescriptor
 
unsigned numberTransmitters
 
uint32_t recordingMode
 
uint32_t features
 
milliseconds_t beginTimeout
 
- Static Protected Attributes inherited from LircDevice
static const bool longReport = false
 Flag indicating how to format reports. More...
 

Detailed Description

This class is a LIRC_MODE_LIRCCODE device as per lirc(4).

Definition at line 9 of file LircCodeLircDevice.h.

Constructor & Destructor Documentation

◆ LircCodeLircDevice() [1/2]

LircCodeLircDevice::LircCodeLircDevice ( const char *  path = defaultFilename)

Definition at line 7 of file LircCodeLircDevice.cpp.

◆ LircCodeLircDevice() [2/2]

LircCodeLircDevice::LircCodeLircDevice ( const LircDevice orig)

Definition at line 10 of file LircCodeLircDevice.cpp.

Member Function Documentation

◆ isLircCode()

bool LircCodeLircDevice::isLircCode ( ) const
inlinevirtual

Always returns true.

Returns
true

Implements LircDevice.

Definition at line 34 of file LircCodeLircDevice.h.

◆ isMode2()

bool LircCodeLircDevice::isMode2 ( ) const
inlinevirtual

Always returns false.

Returns
false

Implements LircDevice.

Definition at line 28 of file LircCodeLircDevice.h.

◆ open()

bool LircCodeLircDevice::open ( )
virtual

Reimplemented from LircDevice.

Definition at line 13 of file LircCodeLircDevice.cpp.

◆ readCode()

uint32_t LircCodeLircDevice::readCode ( )

Definition at line 43 of file LircCodeLircDevice.cpp.

◆ report()

void LircCodeLircDevice::report ( std::ostream &  stream = std::cout) const
virtual

Prints a listing of the properties implemented on the stream supplied.

Parameters
stream

Reimplemented from LircDevice.

Definition at line 28 of file LircCodeLircDevice.cpp.

◆ writeCode()

bool LircCodeLircDevice::writeCode ( uint32_t  code)

Definition at line 49 of file LircCodeLircDevice.cpp.


The documentation for this class was generated from the following files: