• Antti Seppälä's avatar
    [media] rc: ir-rc6-decoder: Add encode capability · cf257e28
    Antti Seppälä authored
    Add the capability to encode RC-6 and RC-6A scancodes as raw events.
    The protocol is chosen based on the specified protocol mask, and
    whether all the required bits are set in the scancode mask, and none of
    the unused bits are set in the scancode data.
    
    The Manchester modulation helper is used several times with various
    timings so that RC-6 header preamble, the header, header trailing bit
    and the data itself can be modulated correctly.
    Signed-off-by: default avatarAntti Seppälä <a.seppala@gmail.com>
    Cc: James Hogan <james@albanarts.com>
    Cc: David Härdeman <david@hardeman.nu>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    cf257e28
ir-rc6-decoder.c 10.7 KB