pub unsafe extern "C" fn infrared_encode(
handler: *mut InfraredEncoderHandler,
duration: *mut u32,
level: *mut bool,
) -> InfraredStatusExpand description
Encode previously set INFRARED message. Usage:
- alloc with
infrared_alloc_encoder() - set message to encode with
infrared_reset_encoder() - call for
infrared_encode()to continuously get one at a time timings. - when
infrared_encode()returns InfraredStatusDone, it means new message is fully encoded. - to encode additional timings, just continue calling
infrared_encode().
§Arguments
handler(direction in) - - handler to INFRARED encoder. Should be acquired withinfrared_alloc_encoder().duration(direction out) - - encoded timing.level(direction out) - - encoded level.
§Returns
status of encode operation.