Appiko
Data Fields
hal_twim_init_config_t Struct Reference

Structure for the TWI master driver initialization. More...

#include <hal_twim.h>

Data Fields

uint32_t scl
 SCL pin number.
 
uint32_t sda
 SDA pin number.
 
hal_twim_freq_t frequency
 TWI frequency.
 
uint32_t irq_priority
 Interrupt priority.
 
uint32_t address
 
void(* evt_handler )(twim_err_t evt, twim_transfer_t transfer)
 
uint32_t evt_mask
 Event Mask for specifying which successful transfer type calls the handler.
 

Detailed Description

Definition at line 94 of file hal_twim.h.

Field Documentation

◆ address

uint32_t hal_twim_init_config_t::address

I2C device address

Definition at line 100 of file hal_twim.h.

Referenced by hal_twim_init().

◆ evt_handler

void(* hal_twim_init_config_t::evt_handler) (twim_err_t evt, twim_transfer_t transfer)

This event handler is called whenever an masked transaction has successfully completed or whenever an error occurs.

Note
Errors cannot be masked, while the types of transfer completes can be masked

Definition at line 104 of file hal_twim.h.

Referenced by hal_twim_init().


The documentation for this struct was generated from the following file: