smoke2 2.0.0.0
Smoke 2 Registers Settings

Settings for registers of Smoke 2 Click driver. More...

Macros

#define SMOKE2_SLOT_A   0
 Smoke 2 description setting.
 
#define SMOKE2_SLOT_B   4
 
#define SMOKE2_CHN_1   0
 Smoke 2 description setting to select channel.
 
#define SMOKE2_CHN_2   1
 
#define SMOKE2_CHN_3   2
 
#define SMOKE2_CHN_4   3
 
#define SMOKE2_MODE_IDLE   0
 Smoke 2 description setting to select mode.
 
#define SMOKE2_MODE_PROGRAM   1
 
#define SMOKE2_MODE_NORMAL   2
 
#define SMOKE2_SMOKE_DETECTED   0xCC
 Smoke 2 description setting for detection smoke.
 
#define SMOKE2_SMOKE_NOT_DETECTED   0xDD
 
#define SMOKE2_READ_CMD   0
 Smoke 2 description setting for read and write.
 
#define SMOKE2_WRITE_CMD   1
 
#define SMOKE2_SET_DEV_ADDR   0x64
 Smoke 2 device address setting.
 
#define SMOKE2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SMOKE2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Smoke 2 Click driver.

Macro Definition Documentation

◆ SMOKE2_CHN_1

#define SMOKE2_CHN_1   0

Smoke 2 description setting to select channel.

Specified setting for select channel Smoke 2 Click driver.

◆ SMOKE2_CHN_2

#define SMOKE2_CHN_2   1

◆ SMOKE2_CHN_3

#define SMOKE2_CHN_3   2

◆ SMOKE2_CHN_4

#define SMOKE2_CHN_4   3

◆ SMOKE2_MODE_IDLE

#define SMOKE2_MODE_IDLE   0

Smoke 2 description setting to select mode.

Specified setting for select mdoe Smoke 2 Click driver.

◆ SMOKE2_MODE_NORMAL

#define SMOKE2_MODE_NORMAL   2

◆ SMOKE2_MODE_PROGRAM

#define SMOKE2_MODE_PROGRAM   1

◆ SMOKE2_READ_CMD

#define SMOKE2_READ_CMD   0

Smoke 2 description setting for read and write.

Specified setting for read and write Smoke 2 Click driver.

◆ SMOKE2_SET_DATA_SAMPLE_EDGE

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

◆ SMOKE2_SET_DATA_SAMPLE_MIDDLE

#define SMOKE2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SMOKE2_SET_DEV_ADDR

#define SMOKE2_SET_DEV_ADDR   0x64

Smoke 2 device address setting.

Specified setting for device slave address selection of Smoke 2 Click driver.

◆ SMOKE2_SLOT_A

#define SMOKE2_SLOT_A   0

Smoke 2 description setting.

Specified setting for description of Smoke 2 Click driver.

◆ SMOKE2_SLOT_B

#define SMOKE2_SLOT_B   4

◆ SMOKE2_SMOKE_DETECTED

#define SMOKE2_SMOKE_DETECTED   0xCC

Smoke 2 description setting for detection smoke.

Specified setting for detection smoke Smoke 2 Click driver.

◆ SMOKE2_SMOKE_NOT_DETECTED

#define SMOKE2_SMOKE_NOT_DETECTED   0xDD

◆ SMOKE2_WRITE_CMD

#define SMOKE2_WRITE_CMD   1