i2s_c_sync_set_ws_length

Set the Word Select pulse Length of the I2S Controller.

int32_t i2s_c_sync_set_ws_length(
    struct i2s_c_sync_desc * i2s,
    const uint16_t n_sck
)

Note that it works only when the I2S Controller is disabled.

Parameters

i2s

Type: struct i2s_c_sync_desc Struct *

Pointer to the I2S Controller instance.

n_sck

Type: const uint16_t

Describes how many SCK bits generates a Word Select pulse.

Returns

Type: int32_t

Operation status.

0

Success.

<0

Error.