AT07334: SAM4 TWI Master Mode Driver [APPLICATION NOTE]
42274A-MCU-05/2014
13
Twim * twim)
Table 4-9. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM
instance
4.4.6 Function twim_disable_interrupt()
Disable the TWIM interrupts and clear their status.
void twim_disable_interrupt(
Twim * twim,
uint32_t interrupt_source)
Write the value passed in interrupt_source into the Interrupt Disable Register. Each bit clears the corresponding bit
in the Interrupt Mask Register and the Status Clear Register. For more detail see the appropriate datasheet.
Table 4-10. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM
[in] interrupt_source The TWI interrupt to be disabled
4.4.7 Function twim_enable()
Sets the Master Enable bit of the Control Register, which enables TWI master mode.
void twim_enable(
Twim * twim)
Table 4-11. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM
instance
4.4.8 Function twim_enable_interrupt()
Enable the TWIM interrupts.
void twim_enable_interrupt(
Twim * twim,
uint32_t interrupt_source)
Write the value passed in interrupt_source into the Interrupt Enable Register. Each bit sets the corresponding bit in
the Interrupt Mask Register. For more detail see the appropriate datasheet.
Table 4-12. Parameters
Data direction Parameter name Description
[in] twim Base address of the TWIM