Type Definition atsam4ls8b_pac::spi::mr::PCSDEC_W

source ·
pub type PCSDEC_W<'a, const O: u8> = BitWriter<'a, u32, MR_SPEC, PCSDECSELECT_A, O>;
Expand description

Field PCSDEC writer - Chip Select Decode

Implementations§

source§

impl<'a, const O: u8> PCSDEC_W<'a, O>

source

pub fn _0(self) -> &'a mut W

The chip selects are directly connected to a peripheral device.

source

pub fn _1(self) -> &'a mut W

The four chip select lines are connected to a 4- to 16-bit decoder.When PCSDEC equals one, up to 15 Chip Select signals can be generated with the four lines using an external 4- to 16-bitdecoder. The Chip Select Registers define the characteristics of the 16 chip selects according to the following rules:CSR0 defines peripheral chip select signals 0 to 3.CSR1 defines peripheral chip select signals 4 to 7.CSR2 defines peripheral chip select signals 8 to 11.CSR3 defines peripheral chip select signals 12 to 15.