I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
I2C_slave_t Struct Reference

i2c slave config and control parameters More...

#include <I2C_component.h>

Data Fields

struct { 
 
   I2C_HandleTypeDef *   bus_inst 
 Slave I2C bus instance. More...
 
   uint16_t   addr 
 Slave address. More...
 
   uint32_t   timeout 
 Slave transaction timeout. More...
 
   I2C_reg_size   mem_size 
 Slave internal registers size. More...
 
   I2C_speed   max_speed 
 Maximal speed allowed by the component. More...
 
cfg 
 
HAL_StatusTypeDef status
 Status of the last transaction.
 
bool en
 State of slave (disabled/enabled)
 
bool busy
 TODO: implement to be checked if transaction pending (it?)
 

Detailed Description

i2c slave config and control parameters

Field Documentation

◆ addr

uint16_t I2C_slave_t::addr

Slave address.

Current internal register address (not used yet)

◆ bus_inst

I2C_HandleTypeDef* I2C_slave_t::bus_inst

Slave I2C bus instance.

◆ busy

bool I2C_slave_t::busy

TODO: implement to be checked if transaction pending (it?)

◆ [struct]

struct { ... } I2C_slave_t::cfg

◆ en

bool I2C_slave_t::en

State of slave (disabled/enabled)

◆ max_speed

I2C_speed I2C_slave_t::max_speed

Maximal speed allowed by the component.

◆ mem_size

I2C_reg_size I2C_slave_t::mem_size

Slave internal registers size.

◆ status

HAL_StatusTypeDef I2C_slave_t::status

Status of the last transaction.

◆ timeout

uint32_t I2C_slave_t::timeout

Slave transaction timeout.


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