メンバ |
説明 |
uint16_t clkdiv; |
SCLK = SSPCLK/ clkdiv |
uint8_t wordlen; |
Word Length |
uint8_t mono; |
stereo or mono |
uint8_t polarity; |
LRCLK極性 |
uint8_t firstbit; |
MSB first or LSB first |
uint8_t padlen; |
Padding Length |
uint8_t justified; |
左揃え or 右揃え |
uint8_t slave; |
Slave動作設定 |
uint8_t reserve[3]; |
予約 |
I2S設定パラメータ
clkdiv の最小値は「4」で奇数指定は不可です。またSlave動作時は設定無効です。
wordlen は伝送データのWord長をbit単位で設定します。
mono は true=mono動作、false=stereo動作 です。
polarity は右から指定します。 _AG903_SspPolarityType
firstbit は右から指定します。 _AG903_SspFirstbitType
padlen は0埋めのPaddingサイズを指定します。
justified は右から指定します。 _AG903_SspJustifiedType
slave は true=Slave動作、false=Master動作 です。