TWI_ConfigureMaster
Default mainpageat91libperipheralstwiTWI_ConfigureMaster
Description Source Call Graph
TWI_ConfigureMaster
Configures a TWI peripheral to operate in master mode, at the given frequency (in Hz).
 
Syntax / parameters
void TWI_ConfigureMaster (AT91S_TWI *pTwi, unsigned int twck, unsigned int mck)

Name Type Default Description
pTwi AT91S_TWI *
  Pointer to an AT91S_TWI instance.
twck unsigned int
  Desired TWI clock frequency.
mck unsigned int
  Master clock frequency.
Description
Configures a TWI peripheral to operate in master mode, at the given frequency (in Hz).
The duty cycle of the TWI clock is set to 50%.
 
Source
The documentation for this Member was generated from the following files:
  • twi.c