EasyManuals Logo

Atmel SAM4 Series User Manual

Atmel SAM4 Series
26 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #13 background imageLoading...
Page #13 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel SAM4 Series and is the answer not in the manual?

Atmel SAM4 Series Specifications

General IconGeneral
BrandAtmel
ModelSAM4 Series
CategoryControl Unit
LanguageEnglish