spiextend 2.0.0.0
SPI Extend Registers Settings

Settings for registers of SPI Extend Click driver. More...

Macros

#define SPIEXTEND_STATUS_ACTIVE   0x00
 SPI Extend status.
 
#define SPIEXTEND_STATUS_INACTIVE   0x01
 
#define SPIEXTEND_ACCEL14_CTRL1_XL_POWER_UP   0xA0
 SPI Extend description setting for Accel 14 config.
 
#define SPIEXTEND_ACCEL14_CTRL1_XL_HIGH_RES_FS   0x00
 
#define SPIEXTEND_ACCEL14_CTRL1_XL_GSEL_4G   0x08
 
#define SPIEXTEND_ACCEL14_CTRL3_C_BOOT_NORMAL   0x00
 
#define SPIEXTEND_ACCEL14_CTRL3_C_BDU_READ_UPDATE   0x40
 
#define SPIEXTEND_ACCEL14_CTRL3_C_INT_ACTIVE_HIGH   0x00
 
#define SPIEXTEND_ACCEL14_CTRL3_C_PP_OD_PUSH_PULL   0x00
 
#define SPIEXTEND_ACCEL14_CTRL3_C_SIM_SPI_4_WIRE   0x00
 
#define SPIEXTEND_ACCEL14_CTRL3_C_IF_INC_ENABLE   0x04
 
#define SPIEXTEND_ACCEL14_CTRL3_C_SW_RESET_DIS   0x00
 
#define SPIEXTEND_ACCEL14_SPI_WRITE   0x00
 SPI Extend Accel 14 communication.
 
#define SPIEXTEND_ACCEL14_SPI_READ   0x80
 
#define SPIEXTEND_CMD_CLEAR_EVENT   0x00
 SPI Extend clear event.
 
#define SPIEXTEND_SLAVE_SELECT_SS1   0x01
 SPI Extend slave select.
 
#define SPIEXTEND_SLAVE_SELECT_SS2   0x02
 
#define SPIEXTEND_SLAVE_SELECT_SS3   0x03
 
#define SPIEXTEND_PIN_STATE_LOW   0x00
 SPI Extend pin state.
 
#define SPIEXTEND_PIN_STATE_HIGH   0x01
 
#define SPIEXTEND_SPI_WRITE   0x00
 SPI Extend communication.
 
#define SPIEXTEND_SPI_READ   0x01
 
#define SPIEXTEND_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SPIEXTEND_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of SPI Extend Click driver.

Macro Definition Documentation

◆ SPIEXTEND_ACCEL14_CTRL1_XL_GSEL_4G

#define SPIEXTEND_ACCEL14_CTRL1_XL_GSEL_4G   0x08

◆ SPIEXTEND_ACCEL14_CTRL1_XL_HIGH_RES_FS

#define SPIEXTEND_ACCEL14_CTRL1_XL_HIGH_RES_FS   0x00

◆ SPIEXTEND_ACCEL14_CTRL1_XL_POWER_UP

#define SPIEXTEND_ACCEL14_CTRL1_XL_POWER_UP   0xA0

SPI Extend description setting for Accel 14 config.

Accel 14 config for SPI Extend Click driver.

◆ SPIEXTEND_ACCEL14_CTRL3_C_BDU_READ_UPDATE

#define SPIEXTEND_ACCEL14_CTRL3_C_BDU_READ_UPDATE   0x40

◆ SPIEXTEND_ACCEL14_CTRL3_C_BOOT_NORMAL

#define SPIEXTEND_ACCEL14_CTRL3_C_BOOT_NORMAL   0x00

◆ SPIEXTEND_ACCEL14_CTRL3_C_IF_INC_ENABLE

#define SPIEXTEND_ACCEL14_CTRL3_C_IF_INC_ENABLE   0x04

◆ SPIEXTEND_ACCEL14_CTRL3_C_INT_ACTIVE_HIGH

#define SPIEXTEND_ACCEL14_CTRL3_C_INT_ACTIVE_HIGH   0x00

◆ SPIEXTEND_ACCEL14_CTRL3_C_PP_OD_PUSH_PULL

#define SPIEXTEND_ACCEL14_CTRL3_C_PP_OD_PUSH_PULL   0x00

◆ SPIEXTEND_ACCEL14_CTRL3_C_SIM_SPI_4_WIRE

#define SPIEXTEND_ACCEL14_CTRL3_C_SIM_SPI_4_WIRE   0x00

◆ SPIEXTEND_ACCEL14_CTRL3_C_SW_RESET_DIS

#define SPIEXTEND_ACCEL14_CTRL3_C_SW_RESET_DIS   0x00

◆ SPIEXTEND_ACCEL14_SPI_READ

#define SPIEXTEND_ACCEL14_SPI_READ   0x80

◆ SPIEXTEND_ACCEL14_SPI_WRITE

#define SPIEXTEND_ACCEL14_SPI_WRITE   0x00

SPI Extend Accel 14 communication.

Accel 14 communication for SPI Extend Click driver.

◆ SPIEXTEND_CMD_CLEAR_EVENT

#define SPIEXTEND_CMD_CLEAR_EVENT   0x00

SPI Extend clear event.

SClear event for SPI Extend Click driver.

◆ SPIEXTEND_PIN_STATE_HIGH

#define SPIEXTEND_PIN_STATE_HIGH   0x01

◆ SPIEXTEND_PIN_STATE_LOW

#define SPIEXTEND_PIN_STATE_LOW   0x00

SPI Extend pin state.

Pin state for SPI Extend Click driver.

◆ SPIEXTEND_SET_DATA_SAMPLE_EDGE

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

◆ SPIEXTEND_SET_DATA_SAMPLE_MIDDLE

#define SPIEXTEND_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SPIEXTEND_SLAVE_SELECT_SS1

#define SPIEXTEND_SLAVE_SELECT_SS1   0x01

SPI Extend slave select.

Slave select for SPI Extend Click driver.

◆ SPIEXTEND_SLAVE_SELECT_SS2

#define SPIEXTEND_SLAVE_SELECT_SS2   0x02

◆ SPIEXTEND_SLAVE_SELECT_SS3

#define SPIEXTEND_SLAVE_SELECT_SS3   0x03

◆ SPIEXTEND_SPI_READ

#define SPIEXTEND_SPI_READ   0x01

◆ SPIEXTEND_SPI_WRITE

#define SPIEXTEND_SPI_WRITE   0x00

SPI Extend communication.

Communication for SPI Extend Click driver.

◆ SPIEXTEND_STATUS_ACTIVE

#define SPIEXTEND_STATUS_ACTIVE   0x00

SPI Extend status.

Status of SPI Extend Click driver.

◆ SPIEXTEND_STATUS_INACTIVE

#define SPIEXTEND_STATUS_INACTIVE   0x01