solidswitch3 2.0.0.0
SolidSwitch 3 Settings

Settings of SolidSwitch 3 Click driver. More...

Macros

#define SOLIDSWITCH3_CH_OUT1   0x01
 SolidSwitch3 channel selection.
 
#define SOLIDSWITCH3_CH_OUT2   0x02
 
#define SOLIDSWITCH3_CH_OUT3   0x04
 
#define SOLIDSWITCH3_CH_OUT4   0x08
 
#define SOLIDSWITCH3_CH_OUT5   0x10
 
#define SOLIDSWITCH3_CH_OUT6   0x20
 
#define SOLIDSWITCH3_CH_OUT7   0x40
 
#define SOLIDSWITCH3_CH_OUT8   0x80
 
#define SOLIDSWITCH3_ALL_CHANNELS   0xFF
 
#define SOLIDSWITCH3_DIR_MODE_SPI   0
 SolidSwitch 3 DIR mode settings.
 
#define SOLIDSWITCH3_DIR_MODE_GPIO   1
 
#define SOLIDSWITCH3_OUT_DISABLE   0u
 SolidSwitch 3 output settings.
 
#define SOLIDSWITCH3_OUT_IN_TERMINAL   1u
 
#define SOLIDSWITCH3_OUT_ENABLE   2u
 
#define SOLIDSWITCH3_OUT_BITS_MASK   3u
 
#define SOLIDSWITCH3_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SOLIDSWITCH3_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings of SolidSwitch 3 Click driver.

Macro Definition Documentation

◆ SOLIDSWITCH3_ALL_CHANNELS

#define SOLIDSWITCH3_ALL_CHANNELS   0xFF

◆ SOLIDSWITCH3_CH_OUT1

#define SOLIDSWITCH3_CH_OUT1   0x01

SolidSwitch3 channel selection.

Specified channel selection of SolidSwitch Click driver.

◆ SOLIDSWITCH3_CH_OUT2

#define SOLIDSWITCH3_CH_OUT2   0x02

◆ SOLIDSWITCH3_CH_OUT3

#define SOLIDSWITCH3_CH_OUT3   0x04

◆ SOLIDSWITCH3_CH_OUT4

#define SOLIDSWITCH3_CH_OUT4   0x08

◆ SOLIDSWITCH3_CH_OUT5

#define SOLIDSWITCH3_CH_OUT5   0x10

◆ SOLIDSWITCH3_CH_OUT6

#define SOLIDSWITCH3_CH_OUT6   0x20

◆ SOLIDSWITCH3_CH_OUT7

#define SOLIDSWITCH3_CH_OUT7   0x40

◆ SOLIDSWITCH3_CH_OUT8

#define SOLIDSWITCH3_CH_OUT8   0x80

◆ SOLIDSWITCH3_DIR_MODE_GPIO

#define SOLIDSWITCH3_DIR_MODE_GPIO   1

◆ SOLIDSWITCH3_DIR_MODE_SPI

#define SOLIDSWITCH3_DIR_MODE_SPI   0

SolidSwitch 3 DIR mode settings.

Specified setting for DIR mode of SolidSwitch 3 Click driver.

◆ SOLIDSWITCH3_OUT_BITS_MASK

#define SOLIDSWITCH3_OUT_BITS_MASK   3u

◆ SOLIDSWITCH3_OUT_DISABLE

#define SOLIDSWITCH3_OUT_DISABLE   0u

SolidSwitch 3 output settings.

Specified output settings of SolidSwitch 3 Click driver.

◆ SOLIDSWITCH3_OUT_ENABLE

#define SOLIDSWITCH3_OUT_ENABLE   2u

◆ SOLIDSWITCH3_OUT_IN_TERMINAL

#define SOLIDSWITCH3_OUT_IN_TERMINAL   1u

◆ SOLIDSWITCH3_SET_DATA_SAMPLE_EDGE

#define SOLIDSWITCH3_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 solidswitch3_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ SOLIDSWITCH3_SET_DATA_SAMPLE_MIDDLE

#define SOLIDSWITCH3_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE