libeasymcp2221 2.0.3
Public Attributes | List of all members
mcp2221_i2c_status_t Struct Reference

Snapshot of the MCP2221 I2C engine status. More...

#include <mcp2221.h>

Public Attributes

uint16_t rlen
 
uint16_t txlen
 
uint8_t div
 
uint8_t ack
 
uint8_t st
 
uint8_t scl
 
uint8_t sda
 
uint8_t confused
 
uint8_t initialized
 

Detailed Description

Snapshot of the MCP2221 I2C engine status.

Definition at line 42 of file mcp2221.h.

Member Data Documentation

◆ ack

uint8_t mcp2221_i2c_status_t::ack

Raw ACK-status bit mask (bit 6), either 0 or 0x40.

Definition at line 46 of file mcp2221.h.

◆ confused

uint8_t mcp2221_i2c_status_t::confused

Nonzero when the EasyMCP2221 compatibility heuristic considers the I2C engine state inconsistent.

Definition at line 50 of file mcp2221.h.

◆ div

uint8_t mcp2221_i2c_status_t::div

MCP2221 I2C clock-divider register value.

Definition at line 45 of file mcp2221.h.

◆ initialized

uint8_t mcp2221_i2c_status_t::initialized

Nonzero when the compatibility heuristic considers the I2C engine initialized.

Definition at line 52 of file mcp2221.h.

◆ rlen

uint16_t mcp2221_i2c_status_t::rlen

Requested transfer length reported by the device.

Definition at line 43 of file mcp2221.h.

◆ scl

uint8_t mcp2221_i2c_status_t::scl

Sampled SCL line level, 0 or 1.

Definition at line 48 of file mcp2221.h.

◆ sda

uint8_t mcp2221_i2c_status_t::sda

Sampled SDA line level, 0 or 1.

Definition at line 49 of file mcp2221.h.

◆ st

uint8_t mcp2221_i2c_status_t::st

Raw MCP2221 internal I2C state code.

Definition at line 47 of file mcp2221.h.

◆ txlen

uint16_t mcp2221_i2c_status_t::txlen

Number of bytes transmitted by the I2C engine.

Definition at line 44 of file mcp2221.h.


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