AT07334: SAM4 TWI Master Mode Driver [APPLICATION NOTE]
42274A-MCU-05/2014
14
Data direction Parameter name Description
[in] interrupt_source The TWI interrupt to be enabled
4.4.9 Function twim_get_interrupt_mask()
Return the current content of the Interrupt Mask Register.
uint32_t twim_get_interrupt_mask(
Twim * twim)
Table 4-13. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM
Returns
TWIM interrupt mask.
4.4.10 Function twim_get_status()
Return the contents of Status Register.
uint32_t twim_get_status(
Twim * twim)
Table 4-14. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM
Returns
Contents of TWI Status Register.
4.4.11 Function twim_pdca_transfer_prepare()
Setup the TWI master for a PDCA (Peripheral DMA Controler) transfer.
void twim_pdca_transfer_prepare(
Twim * twim,
twi_package_t * package,
bool read)
Setup a DMA transfer. See twim_package
Table 4-15. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM
[in] package Package information and data, see
twim_package