mux5 2.1.0.0
MUX 5 Registers Settings

Settings for registers of MUX 5 Click driver. More...

Macros

#define MUX5_I2C_DRIVER   0
 MUX 5 driver interface selection setting.
 
#define MUX5_SPI_DRIVER   1
 
#define MUX5_DRIVER_SEL   MUX5_I2C_DRIVER
 
#define MUX5_CHANNEL_1   0x0001
 MUX 5 channel selection macros.
 
#define MUX5_CHANNEL_2   0x0002
 
#define MUX5_CHANNEL_3   0x0004
 
#define MUX5_CHANNEL_4   0x0008
 
#define MUX5_CHANNEL_5   0x0010
 
#define MUX5_CHANNEL_6   0x0020
 
#define MUX5_CHANNEL_7   0x0040
 
#define MUX5_CHANNEL_8   0x0080
 
#define MUX5_CHANNEL_9   0x0100
 
#define MUX5_CHANNEL_10   0x0200
 
#define MUX5_CHANNEL_11   0x0400
 
#define MUX5_CHANNEL_12   0x0800
 
#define MUX5_CHANNEL_13   0x1000
 
#define MUX5_CHANNEL_14   0x2000
 
#define MUX5_CHANNEL_15   0x4000
 
#define MUX5_CHANNEL_16   0x8000
 
#define MUX5_CHANNEL_ALL   0xFFFF
 
#define MUX5_CHANNEL_STATE_HIGH_Z   0
 MUX 5 channel state macros.
 
#define MUX5_CHANNEL_STATE_COM_A   1
 
#define MUX5_CHANNEL_STATE_COM_B   2
 
#define MUX5_CHANNEL_STATE_COM_AB   3
 
#define MUX5_DEVICE_ADDRESS_0   0x4C
 MUX 5 device address setting.
 
#define MUX5_DEVICE_ADDRESS_1   0x4D
 
#define MUX5_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define MUX5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of MUX 5 Click driver.

Macro Definition Documentation

◆ MUX5_CHANNEL_1

#define MUX5_CHANNEL_1   0x0001

MUX 5 channel selection macros.

Specified channel selection macros of MUX 5 Click driver.

◆ MUX5_CHANNEL_10

#define MUX5_CHANNEL_10   0x0200

◆ MUX5_CHANNEL_11

#define MUX5_CHANNEL_11   0x0400

◆ MUX5_CHANNEL_12

#define MUX5_CHANNEL_12   0x0800

◆ MUX5_CHANNEL_13

#define MUX5_CHANNEL_13   0x1000

◆ MUX5_CHANNEL_14

#define MUX5_CHANNEL_14   0x2000

◆ MUX5_CHANNEL_15

#define MUX5_CHANNEL_15   0x4000

◆ MUX5_CHANNEL_16

#define MUX5_CHANNEL_16   0x8000

◆ MUX5_CHANNEL_2

#define MUX5_CHANNEL_2   0x0002

◆ MUX5_CHANNEL_3

#define MUX5_CHANNEL_3   0x0004

◆ MUX5_CHANNEL_4

#define MUX5_CHANNEL_4   0x0008

◆ MUX5_CHANNEL_5

#define MUX5_CHANNEL_5   0x0010

◆ MUX5_CHANNEL_6

#define MUX5_CHANNEL_6   0x0020

◆ MUX5_CHANNEL_7

#define MUX5_CHANNEL_7   0x0040

◆ MUX5_CHANNEL_8

#define MUX5_CHANNEL_8   0x0080

◆ MUX5_CHANNEL_9

#define MUX5_CHANNEL_9   0x0100

◆ MUX5_CHANNEL_ALL

#define MUX5_CHANNEL_ALL   0xFFFF

◆ MUX5_CHANNEL_STATE_COM_A

#define MUX5_CHANNEL_STATE_COM_A   1

◆ MUX5_CHANNEL_STATE_COM_AB

#define MUX5_CHANNEL_STATE_COM_AB   3

◆ MUX5_CHANNEL_STATE_COM_B

#define MUX5_CHANNEL_STATE_COM_B   2

◆ MUX5_CHANNEL_STATE_HIGH_Z

#define MUX5_CHANNEL_STATE_HIGH_Z   0

MUX 5 channel state macros.

Specified channel state macros of MUX 5 Click driver.

◆ MUX5_DEVICE_ADDRESS_0

#define MUX5_DEVICE_ADDRESS_0   0x4C

MUX 5 device address setting.

Specified setting for device slave address selection of MUX 5 Click driver.

◆ MUX5_DEVICE_ADDRESS_1

#define MUX5_DEVICE_ADDRESS_1   0x4D

◆ MUX5_DRIVER_SEL

#define MUX5_DRIVER_SEL   MUX5_I2C_DRIVER

◆ MUX5_I2C_DRIVER

#define MUX5_I2C_DRIVER   0

MUX 5 driver interface selection setting.

Specified setting for driver interface selection of MUX 5 Click driver.

◆ MUX5_SET_DATA_SAMPLE_EDGE

#define MUX5_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with mux5_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ MUX5_SET_DATA_SAMPLE_MIDDLE

#define MUX5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ MUX5_SPI_DRIVER

#define MUX5_SPI_DRIVER   1