timerrelay 2.1.0.0
Timer Relay Registers Settings

Settings for registers of Timer Relay Click driver. More...

Macros

#define TIMERRELAY_PIN_STATE_HIGH   0x01
 Timer Relay description setting.
 
#define TIMERRELAY_PIN_STATE_LOW   0x00
 
#define TIMERRELAY_5V_MAX_DELAY   60
 Timer Relay calculation setting.
 
#define TIMERRELAY_3V3_MAX_DELAY   160
 
#define TIMERRELAY_5V_CALCULATION_MULTIPLIER   0.2353f
 
#define TIMERRELAY_3V3_CALCULATION_MULTIPLIER   0.6275f
 
#define TIMERRELAY_VCC_5V   0x01
 Timer Relay Vcc select setting.
 
#define TIMERRELAY_VCC_3V3   0x00
 
#define TIMERRELAY_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define TIMERRELAY_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Timer Relay Click driver.

Macro Definition Documentation

◆ TIMERRELAY_3V3_CALCULATION_MULTIPLIER

#define TIMERRELAY_3V3_CALCULATION_MULTIPLIER   0.6275f

◆ TIMERRELAY_3V3_MAX_DELAY

#define TIMERRELAY_3V3_MAX_DELAY   160

◆ TIMERRELAY_5V_CALCULATION_MULTIPLIER

#define TIMERRELAY_5V_CALCULATION_MULTIPLIER   0.2353f

◆ TIMERRELAY_5V_MAX_DELAY

#define TIMERRELAY_5V_MAX_DELAY   60

Timer Relay calculation setting.

Specified calculation setting of Timer Relay Click driver.

◆ TIMERRELAY_PIN_STATE_HIGH

#define TIMERRELAY_PIN_STATE_HIGH   0x01

Timer Relay description setting.

Specified setting for description of Timer Relay Click driver.

◆ TIMERRELAY_PIN_STATE_LOW

#define TIMERRELAY_PIN_STATE_LOW   0x00

◆ TIMERRELAY_SET_DATA_SAMPLE_EDGE

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

◆ TIMERRELAY_SET_DATA_SAMPLE_MIDDLE

#define TIMERRELAY_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ TIMERRELAY_VCC_3V3

#define TIMERRELAY_VCC_3V3   0x00

◆ TIMERRELAY_VCC_5V

#define TIMERRELAY_VCC_5V   0x01

Timer Relay Vcc select setting.

Specified Vcc selection of Timer Relay Click driver.