subghz_protocol_keeloq_create_data

Function subghz_protocol_keeloq_create_data 

Source
pub unsafe extern "C" fn subghz_protocol_keeloq_create_data(
    context: *mut c_void,
    flipper_format: *mut FlipperFormat,
    serial: u32,
    btn: u8,
    cnt: u16,
    manufacture_name: *const c_char,
    preset: *mut SubGhzRadioPreset,
) -> bool
Expand description

Key generation from simple data.

§Arguments

  • context - Pointer to a SubGhzProtocolEncoderKeeloq instance
  • flipper_format - Pointer to a FlipperFormat instance
  • serial - Serial number, 28 bit
  • btn - Button number, 4 bit
  • cnt - Counter value, 16 bit
  • manufacture_name - Name of manufacturer’s key
  • preset - Modulation, SubGhzRadioPreset

§Returns

true On success