uarttoi2c 2.1.0.0
UART to I2C Device Settings

Settings for registers of UART to I2C Click driver. More...

Macros

#define UARTTOI2C_CMD_START   'S'
 UART to I2C control commands.
 
#define UARTTOI2C_CMD_STOP   'P'
 
#define UARTTOI2C_CMD_READ_REG   'R'
 
#define UARTTOI2C_CMD_WRITE_REG   'W'
 
#define UARTTOI2C_CMD_READ_GPIO   'I'
 
#define UARTTOI2C_CMD_WRITE_GPIO   'O'
 
#define UARTTOI2C_CMD_READ_VERSION   'V'
 
#define UARTTOI2C_CMD_POWER_DOWN   'Z'
 
#define UARTTOI2C_REG_BRG0   0x00
 UART to I2C registers list.
 
#define UARTTOI2C_REG_BRG1   0x01
 
#define UARTTOI2C_REG_PORT_CONF_1   0x02
 
#define UARTTOI2C_REG_PORT_CONF_2   0x03
 
#define UARTTOI2C_REG_IO_STATE   0x04
 
#define UARTTOI2C_REG_RESERVED   0x05
 
#define UARTTOI2C_REG_I2C_ADR   0x06
 
#define UARTTOI2C_REG_I2C_CLK_L   0x07
 
#define UARTTOI2C_REG_I2C_CLK_H   0x08
 
#define UARTTOI2C_REG_I2C_TO   0x09
 
#define UARTTOI2C_REG_I2C_STAT   0x0A
 
#define UARTTOI2C_TIMEOUT_MS   3000
 UART to I2C read timeout settings.
 
#define UARTTOI2C_POWER_UP_BYTE_0   0x4F
 UART to I2C power up bytes (ASCII "OK").
 
#define UARTTOI2C_POWER_UP_BYTE_1   0x4B
 
#define UARTTOI2C_NO_PIN_MASK   0x00
 UART to I2C pin mask values.
 
#define UARTTOI2C_PIN_0_MASK   0x01
 
#define UARTTOI2C_PIN_1_MASK   0x02
 
#define UARTTOI2C_PIN_2_MASK   0x04
 
#define UARTTOI2C_PIN_3_MASK   0x08
 
#define UARTTOI2C_PIN_4_MASK   0x10
 
#define UARTTOI2C_PIN_5_MASK   0x20
 
#define UARTTOI2C_PIN_6_MASK   0x40
 
#define UARTTOI2C_PIN_7_MASK   0x80
 
#define UARTTOI2C_ALL_PINS_MASK   0xFF
 
#define UARTTOI2C_PIN_DIR_INPUT   0x00
 UART to I2C pin direction settings.
 
#define UARTTOI2C_PIN_DIR_OUTPUT_PP   0x02
 
#define UARTTOI2C_PIN_DIR_OUTPUT_OD   0x03
 
#define UARTTOI2C_PIN_DIR_OUTPUT_MASK   0x03
 
#define UARTTOI2C_TX_DRV_BUFFER_SIZE   100
 UART to I2C driver buffer size.
 
#define UARTTOI2C_RX_DRV_BUFFER_SIZE   300
 

Detailed Description

Settings for registers of UART to I2C Click driver.

Macro Definition Documentation

◆ UARTTOI2C_ALL_PINS_MASK

#define UARTTOI2C_ALL_PINS_MASK   0xFF

◆ UARTTOI2C_CMD_POWER_DOWN

#define UARTTOI2C_CMD_POWER_DOWN   'Z'

◆ UARTTOI2C_CMD_READ_GPIO

#define UARTTOI2C_CMD_READ_GPIO   'I'

◆ UARTTOI2C_CMD_READ_REG

#define UARTTOI2C_CMD_READ_REG   'R'

◆ UARTTOI2C_CMD_READ_VERSION

#define UARTTOI2C_CMD_READ_VERSION   'V'

◆ UARTTOI2C_CMD_START

#define UARTTOI2C_CMD_START   'S'

UART to I2C control commands.

Specified setting for control commands of UART to I2C Click driver.

◆ UARTTOI2C_CMD_STOP

#define UARTTOI2C_CMD_STOP   'P'

◆ UARTTOI2C_CMD_WRITE_GPIO

#define UARTTOI2C_CMD_WRITE_GPIO   'O'

◆ UARTTOI2C_CMD_WRITE_REG

#define UARTTOI2C_CMD_WRITE_REG   'W'

◆ UARTTOI2C_NO_PIN_MASK

#define UARTTOI2C_NO_PIN_MASK   0x00

UART to I2C pin mask values.

Specified pin mask values of UART to I2C Click driver.

◆ UARTTOI2C_PIN_0_MASK

#define UARTTOI2C_PIN_0_MASK   0x01

◆ UARTTOI2C_PIN_1_MASK

#define UARTTOI2C_PIN_1_MASK   0x02

◆ UARTTOI2C_PIN_2_MASK

#define UARTTOI2C_PIN_2_MASK   0x04

◆ UARTTOI2C_PIN_3_MASK

#define UARTTOI2C_PIN_3_MASK   0x08

◆ UARTTOI2C_PIN_4_MASK

#define UARTTOI2C_PIN_4_MASK   0x10

◆ UARTTOI2C_PIN_5_MASK

#define UARTTOI2C_PIN_5_MASK   0x20

◆ UARTTOI2C_PIN_6_MASK

#define UARTTOI2C_PIN_6_MASK   0x40

◆ UARTTOI2C_PIN_7_MASK

#define UARTTOI2C_PIN_7_MASK   0x80

◆ UARTTOI2C_PIN_DIR_INPUT

#define UARTTOI2C_PIN_DIR_INPUT   0x00

UART to I2C pin direction settings.

Specified pin direction settings of UART to I2C Click driver.

◆ UARTTOI2C_PIN_DIR_OUTPUT_MASK

#define UARTTOI2C_PIN_DIR_OUTPUT_MASK   0x03

◆ UARTTOI2C_PIN_DIR_OUTPUT_OD

#define UARTTOI2C_PIN_DIR_OUTPUT_OD   0x03

◆ UARTTOI2C_PIN_DIR_OUTPUT_PP

#define UARTTOI2C_PIN_DIR_OUTPUT_PP   0x02

◆ UARTTOI2C_POWER_UP_BYTE_0

#define UARTTOI2C_POWER_UP_BYTE_0   0x4F

UART to I2C power up bytes (ASCII "OK").

Specified power up bytes of UART to I2C Click driver.

◆ UARTTOI2C_POWER_UP_BYTE_1

#define UARTTOI2C_POWER_UP_BYTE_1   0x4B

◆ UARTTOI2C_REG_BRG0

#define UARTTOI2C_REG_BRG0   0x00

UART to I2C registers list.

Specified registers list of UART to I2C Click driver.

◆ UARTTOI2C_REG_BRG1

#define UARTTOI2C_REG_BRG1   0x01

◆ UARTTOI2C_REG_I2C_ADR

#define UARTTOI2C_REG_I2C_ADR   0x06

◆ UARTTOI2C_REG_I2C_CLK_H

#define UARTTOI2C_REG_I2C_CLK_H   0x08

◆ UARTTOI2C_REG_I2C_CLK_L

#define UARTTOI2C_REG_I2C_CLK_L   0x07

◆ UARTTOI2C_REG_I2C_STAT

#define UARTTOI2C_REG_I2C_STAT   0x0A

◆ UARTTOI2C_REG_I2C_TO

#define UARTTOI2C_REG_I2C_TO   0x09

◆ UARTTOI2C_REG_IO_STATE

#define UARTTOI2C_REG_IO_STATE   0x04

◆ UARTTOI2C_REG_PORT_CONF_1

#define UARTTOI2C_REG_PORT_CONF_1   0x02

◆ UARTTOI2C_REG_PORT_CONF_2

#define UARTTOI2C_REG_PORT_CONF_2   0x03

◆ UARTTOI2C_REG_RESERVED

#define UARTTOI2C_REG_RESERVED   0x05

◆ UARTTOI2C_RX_DRV_BUFFER_SIZE

#define UARTTOI2C_RX_DRV_BUFFER_SIZE   300

◆ UARTTOI2C_TIMEOUT_MS

#define UARTTOI2C_TIMEOUT_MS   3000

UART to I2C read timeout settings.

Specified read timeout settings of UART to I2C Click driver.

◆ UARTTOI2C_TX_DRV_BUFFER_SIZE

#define UARTTOI2C_TX_DRV_BUFFER_SIZE   100

UART to I2C driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.