skeletonKey
BEng Dissertation; Pen-testing device
Public Member Functions | Private Attributes
IRTools Class Reference
Collaboration diagram for IRTools:

Public Member Functions

 IRTools ()
 Construct a new IRTools object.
 
void init (fs::SDFS &sdInstance)
 Construct a new IRTools object.
 
void sendRawIR (uint16_t *data, uint16_t length, uint16_t frequency)
 Function to send a custom raw IR command.
 
void findDeviceTypes ()
 Find the Avaliable Device Types.
 
std::vector< String > getDeviceTypes ()
 Get the Device Types object.
 
void findDeviceBrands (int deviceTypeIndex)
 Find the Avaliable Device Brands.
 
std::vector< String > getDeviceBrands ()
 Get the Device Brands object.
 
void findDevices (int deviceBrandIndex)
 Find the Avaliable Devices.
 
std::vector< String > getDevices ()
 Get the Devices object.
 
void findDeviceCommands (int deviceIndex)
 Get the Avaliable Device Commands object.
 
std::vector< IRCommandgetDeviceCommands ()
 Get the Device Commands object.
 
void sendIRCommand (IRCommand irCommand)
 Function to send an IR command.
 
void jamIR (int duration)
 Function to jam IR signals.
 
void captureIR (int duration)
 Function to capture IR signals.
 
 IRTools ()
 Construct a new IRTools object.
 
void init (fs::SDFS &sdInstance)
 Construct a new IRTools object.
 
void sendRawIR (uint16_t *data, uint16_t length, uint16_t frequency)
 Function to send a custom raw IR command.
 
void findDeviceTypes ()
 Find the Avaliable Device Types.
 
std::vector< String > getDeviceTypes ()
 Get the Device Types object.
 
void findDeviceBrands (int deviceTypeIndex)
 Find the Avaliable Device Brands.
 
std::vector< String > getDeviceBrands ()
 Get the Device Brands object.
 
void findDevices (int deviceBrandIndex)
 Find the Avaliable Devices.
 
std::vector< String > getDevices ()
 Get the Devices object.
 
void findDeviceCommands (int deviceIndex)
 Get the Avaliable Device Commands object.
 
std::vector< IRCommandgetDeviceCommands ()
 Get the Device Commands object.
 
void sendIRCommand (IRCommand irCommand)
 Function to send an IR command.
 
void jamIR (int duration)
 Function to jam IR signals.
 
void captureIR (int duration)
 Function to capture IR signals.
 

Private Attributes

uint16_t kIrLed = 38
 
uint16_t kRecvPin = 37
 
IRsend irsend
 
IRrecv irrecv
 
fs::SDFS * _sd
 
std::vector< String > deviceTypes
 
std::vector< String > deviceBrands
 
std::vector< String > devices
 
std::vector< IRCommanddeviceCommands
 
String deviceType
 
String deviceBrand
 
String devicePath
 
String device
 
decode_results results
 
uint16_t jamSignal [2] = {65535, 0}
 

Member Function Documentation

◆ captureIR() [1/2]

void IRTools::captureIR ( int  duration)

Function to capture IR signals.

Parameters
durationDuration to capture IR signals

◆ captureIR() [2/2]

void IRTools::captureIR ( int  duration)

Function to capture IR signals.

Parameters
durationDuration to capture IR signals

◆ findDeviceBrands() [1/2]

void IRTools::findDeviceBrands ( int  deviceTypeIndex)

Find the Avaliable Device Brands.

Parameters
deviceTypeIndexIndex of the device type

◆ findDeviceBrands() [2/2]

void IRTools::findDeviceBrands ( int  deviceTypeIndex)

Find the Avaliable Device Brands.

Parameters
deviceTypeIndexIndex of the device type

◆ findDeviceCommands() [1/2]

void IRTools::findDeviceCommands ( int  deviceIndex)

Get the Avaliable Device Commands object.

Parameters
deviceIndexIndex of the device

◆ findDeviceCommands() [2/2]

void IRTools::findDeviceCommands ( int  deviceIndex)

Get the Avaliable Device Commands object.

Parameters
deviceIndexIndex of the device

◆ findDevices() [1/2]

void IRTools::findDevices ( int  deviceBrandIndex)

Find the Avaliable Devices.

Parameters
deviceBrandIndexIndex of the device brand

◆ findDevices() [2/2]

void IRTools::findDevices ( int  deviceBrandIndex)

Find the Avaliable Devices.

Parameters
deviceBrandIndexIndex of the device brand

◆ getDeviceBrands() [1/2]

std::vector< String > IRTools::getDeviceBrands ( )

Get the Device Brands object.

Returns
std::vector<String>

◆ getDeviceBrands() [2/2]

std::vector< String > IRTools::getDeviceBrands ( )

Get the Device Brands object.

Returns
std::vector<String>

◆ getDeviceCommands() [1/2]

std::vector< IRCommand > IRTools::getDeviceCommands ( )

Get the Device Commands object.

Returns
std::vector<IRCommand>

◆ getDeviceCommands() [2/2]

std::vector< IRCommand > IRTools::getDeviceCommands ( )

Get the Device Commands object.

Returns
std::vector<IRCommand>

◆ getDevices() [1/2]

std::vector< String > IRTools::getDevices ( )

Get the Devices object.

Returns
std::vector<String>

◆ getDevices() [2/2]

std::vector< String > IRTools::getDevices ( )

Get the Devices object.

Returns
std::vector<String>

◆ getDeviceTypes() [1/2]

std::vector< String > IRTools::getDeviceTypes ( )

Get the Device Types object.

Returns
std::vector<String>

References findDeviceTypes().

◆ getDeviceTypes() [2/2]

std::vector< String > IRTools::getDeviceTypes ( )

Get the Device Types object.

Returns
std::vector<String>

◆ init() [1/2]

void IRTools::init ( fs::SDFS &  sdInstance)

Construct a new IRTools object.

Parameters
sdInstanceSDFS instance

◆ init() [2/2]

void IRTools::init ( fs::SDFS &  sdInstance)

Construct a new IRTools object.

Parameters
sdInstanceSDFS instance

◆ jamIR() [1/2]

void IRTools::jamIR ( int  duration)

Function to jam IR signals.

Parameters
durationDuration to jam IR signals

◆ jamIR() [2/2]

void IRTools::jamIR ( int  duration)

Function to jam IR signals.

Parameters
durationDuration to jam IR signals

◆ sendIRCommand() [1/2]

void IRTools::sendIRCommand ( IRCommand  irCommand)

Function to send an IR command.

Parameters
irCommand

◆ sendIRCommand() [2/2]

void IRTools::sendIRCommand ( IRCommand  irCommand)

Function to send an IR command.

Parameters
irCommand

◆ sendRawIR() [1/2]

void IRTools::sendRawIR ( uint16_t *  data,
uint16_t  length,
uint16_t  frequency 
)

Function to send a custom raw IR command.

Parameters
dataCommand data
lengthCommand length
frequencyCommand frequency

◆ sendRawIR() [2/2]

void IRTools::sendRawIR ( uint16_t *  data,
uint16_t  length,
uint16_t  frequency 
)

Function to send a custom raw IR command.

Parameters
dataCommand data
lengthCommand length
frequencyCommand frequency

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