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 |
|
||||
Generates |
|
getCarrierFreqs
getCarrierFreqs () generates (bool success, vec<ConsumerIrFreqRange> ranges)
getCarrierFreqs() enumerates which frequencies the IR transmitter supports.
Details | |||||
---|---|---|---|---|---|
Generates |
|