pub fn new(dir: I2SDir) -> I2SChanConfig {
        I2SChanConfig {
            dir,
            sync_type: I2SSync::Master,
            clock_strobe: I2SClockStrobe::Falling,
            slots: 2,
            first_bit_offset: 0,
            frame_sync_before: false,
            frame_sync_active_high: false,
            oversampling: false,
            master_clock_disabled: false,
            companding: I2SCompanding::Disabled,
            complement: I2SComplement::Ones,
            protocol: I2SProtocol::MSB,
            mono_mode: false,
            mute_repeat: false,
            mute_counter: 0,
            tristate: false,
            frame_size: None,
        }
    }
/// Create a default configuration for the I2S channel
///
/// Arguments:
/// * `dir` - The direction of data (Rx or Tx)
Create a default configuration for the I2S channel
Arguments:
`dir` - The direction of data (Rx or Tx)
Create a default configuration for the I2S channel Arguments : ` dir ` - The direction of data ( Rx or Tx )
pub fn new(dir: I2SDir) -> I2SChanConfig {
        I2SChanConfig {
            dir,
            sync_type: I2SSync::Master,
            clock_strobe: I2SClockStrobe::Falling,
            slots: 2,
            first_bit_offset: 0,
            frame_sync_before: false,
            frame_sync_active_high: false,
            oversampling: false,
            master_clock_disabled: false,
            companding: I2SCompanding::Disabled,
            complement: I2SComplement::Ones,
            protocol: I2SProtocol::MSB,
            mono_mode: false,
            mute_repeat: false,
            mute_counter: 0,
            tristate: false,
            frame_size: None,
        }
    }
pub fn new ( dir : I2SDir ) -> I2SChanConfig { I2SChanConfig { dir , sync_type : I2SSync :: Master , clock_strobe : I2SClockStrobe :: Falling , slots : 2 , first_bit_offset : 0 , frame_sync_before : false , frame_sync_active_high : false , oversampling : false , master_clock_disabled : false , companding : I2SCompanding :: Disabled , complement : I2SComplement :: Ones , protocol : I2SProtocol :: MSB , mono_mode : false , mute_repeat : false , mute_counter : 0 , tristate : false , frame_size : None , } }
Create a default configuration for the I2S channel
Arguments:
 `dir` - The direction of data (Rx or Tx)
Create a default configuration for the I2S channel Arguments : ` dir ` - The direction of data ( Rx or Tx )
dir
I2SDir
dir
I2SDir