pub unsafe extern "C" fn ltc_frame_set_parity(
    frame: *mut LTCFrame,
    standard: LTC_TV_STANDARD
)
Expand description

Set the parity of the LTC frame.

Bi-Phase Mark Phase Correction bit (bit 27 - or 59) may be set or cleared so that that every 80-bit word contains an even number of zeroes. This means that the phase in every Sync Word will be the same.

This is merely cosmetic; the motivation to keep the polarity of the waveform constant is to make finding the Sync Word visibly (on a scope) easier.

There is usually no need to call this function directly. The encoder utility functions \ref ltc_time_to_frame, \ref ltc_frame_increment and \ref ltc_frame_decrement include a call to it.

@param frame the LTC to analyze and set or clear the biphase_mark_phase_correction bit. @param standard If 1 (aka LTC_TV_625_50) , the 25fps mode (bit 59 - aka binary_group_flag_bit2) is used, otherwise the 30fps, 24fps mode (bit 27 – biphase_mark_phase_correction) is set or cleared.