SAM4SD32 (SAM4S-EK2)
Loading...
Searching...
No Matches
twi_options Struct Reference

Input parameters when initializing the TWI module mode. More...

#include <twi.h>

Data Fields

uint8_t chip
 The desired address.
uint32_t master_clk
 MCK for TWI.
uint8_t smbus
 SMBUS mode (set 1 to use SMBUS quick command, otherwise don't).
uint32_t speed
 The baud rate of the TWI bus.

Detailed Description

Input parameters when initializing the TWI module mode.

Definition at line 74 of file twi.h.

Field Documentation

◆ chip

uint8_t twi_options::chip

The desired address.

Definition at line 80 of file twi.h.

◆ master_clk

uint32_t twi_options::master_clk

MCK for TWI.

Definition at line 76 of file twi.h.

Referenced by twi_master_init(), and twi_master_setup().

◆ smbus

uint8_t twi_options::smbus

SMBUS mode (set 1 to use SMBUS quick command, otherwise don't).

Definition at line 82 of file twi.h.

Referenced by twi_master_init(), and twi_master_setup().

◆ speed

uint32_t twi_options::speed

The baud rate of the TWI bus.

Definition at line 78 of file twi.h.

Referenced by twi_master_init().