ph_convertir PowerHome formula function
Description
Converts raw IR code strings to other IR
formats.
Syntax
ph_convertir ( convertto, code
)
Argument |
Description |
convertto |
String. The type of IR code to convert to. |
code
|
String. The IR code
to convert.
|
Return value
String. Returns the converted IR code
in the specified format or an
error message.
Usage
Valid convertto formats are:
"pronto"
"cir"
"howtek"
"rr2"
"slinke"
"uirtraw"
"uirtstruct"
"rr3"
"gc"
You do not need to specify the input code
format as the system will autodetermine it based upon the code itself. If
the function fails, it will return a string detailing the error. All error
strings start with "***ERROR:"
Examples
The following examples demonstrate typical syntax/usage for this function.
ph_convertir("pronto","<rr2>F61L847042AC08191923X43FBF7EF7BDFBF7FEF7BFF7BFF7BDEC43FBF7EF7BDFBF7FEF7BFF7BFF7BDEC00P45BBR02")
The
above call will convert the RedRat2 IR string into the Pronto format. The
result of this conversion is: <pronto>0000 0065 0022 0022 015E 00B0 0015
0015 0015 0015 0015 0015 0015 0042 0015 0015 0015 0042 0015 0015 0015 0042 0015
0042 0015 0042 0015 0042 0015 0015 0015 0042 0015 0015 0015 0042 0015 0015 0015
0015 0015 0015 0015 0042 0015 0042 0015 0042 0015 0015 0015 0015 0015 0015 0015
0042 0015 0042 0015 0015 0015 0015 0015 0015 0015 0042 0015 0042 0015 0042 0015
05C0 015E 00B0 0015 0015 0015 0015 0015 0015 0015 0042 0015 0015 0015 0042 0015
0015 0015 0042 0015 0042 0015 0042 0015 0042 0015 0015 0015 0042 0015 0015 0015
0042 0015 0015 0015 0015 0015 0015 0015 0042 0015 0042 0015 0042 0015 0015 0015
0015 0015 0015 0015 0042 0015 0042 0015 0015 0015 0015 0015 0015 0015 0042 0015
0042 0015 0042 0015 05C0<repeat>1<zone>1