Package: android.hardware.ir@1.0

IConsumerIr

interface IConsumerIr

Methods

transmit

transmit (int32_t carrierFreq, vec<int32_t> pattern)
generates (bool success)

transmit() sends an IR pattern at a given carrierFreq.

The pattern is alternating series of carrier on and off periods measured in microseconds.The carrier should be turned off at the end of a transmit even if there are and odd number of entries in the pattern array.

This call must return when the transmit is complete or encounters an error.

Details
Parameters
carrierFreq
pattern
Generates
success
true on success, false on error.

getCarrierFreqs

getCarrierFreqs ()
generates (bool success, vec<ConsumerIrFreqRange> ranges)

getCarrierFreqs() enumerates which frequencies the IR transmitter supports.

Details
Generates
success
On success, true and a vector of all supported frequency ranges.On error, returns false.
ranges