pcr 2.1.0.0
PCR Registers Settings

Settings for registers of PCR Click driver. More...

Macros

#define PCR_STATUS_RSS_REG_OK   0x00000001ul
 PCR description setting.
 
#define PCR_STATUS_CFG_CREATE_OK   0x00000002ul
 
#define PCR_STATUS_SENSOR_CREATE_OK   0x00000004ul
 
#define PCR_STATUS_DETECTOR_CREATE_OK   0x00000008ul
 
#define PCR_STATUS_DETECTOR_BUFFER_OK   0x00000010ul
 
#define PCR_STATUS_SENSOR_BUFFER_OK   0x00000020ul
 
#define PCR_STATUS_CALIB_BUFFER_OK   0x00000040ul
 
#define PCR_STATUS_CFG_APPLY_OK   0x00000080ul
 
#define PCR_STATUS_SENSOR_CALIB_OK   0x00000100ul
 
#define PCR_STATUS_DETECTOR_CALIB_OK   0x00000200ul
 
#define PCR_STATUS_RSS_REG_ERR   0x00010000ul
 
#define PCR_STATUS_CFG_CREATE_ERR   0x00020000ul
 
#define PCR_STATUS_SENSOR_CREATE_ERR   0x00040000ul
 
#define PCR_STATUS_DETECTOR_CREATE_ERR   0x00080000ul
 
#define PCR_STATUS_DETECTOR_BUFFER_ERR   0x00100000ul
 
#define PCR_STATUS_SENSOR_BUFFER_ERR   0x00200000ul
 
#define PCR_STATUS_CALIB_BUFFER_ERR   0x00400000ul
 
#define PCR_STATUS_CFG_APPLY_ERR   0x00800000ul
 
#define PCR_STATUS_SENSOR_CALIB_ERR   0x01000000ul
 
#define PCR_STATUS_DETECTOR_CALIB_ERR   0x02000000ul
 
#define PCR_STATUS_DETECTOR_ERR   0x10000000ul
 
#define PCR_STATUS_BUSY   0x80000000ul
 
#define PCR_APPLY_CFG_AND_CALIB_CMD   0x00000001ul
 PCR commands setting.
 
#define PCR_MEASURE_DISTANCE_CMD   0x00000002ul
 
#define PCR_APPLY_CONFIGURATION_CMD   0x00000003ul
 
#define PCR_CALIBRATE_CMD   0x00000004ul
 
#define PCR_RECALIBRATE_CMD   0x00000005ul
 
#define PCR_ENABLE_UART_LOGS_CMD   0x00000020ul
 
#define PCR_DISABLE_UART_LOGS_CMD   0x00000021ul
 
#define PCR_LOG_CONFIGURATION_CMD   0x00000022ul
 
#define PCR_RESET_MODULE_CMD   0x52535421ul
 
#define PCR_PIN_STATE_HIGH   0x01
 PCR pin state setting.
 
#define PCR_PIN_STATE_LOW   0x00
 
#define PCR_MIN_DISTANCE   10
 PCR distance setting.
 
#define PCR_MAX_DISTANCE   5000
 
#define PCR_DEVICE_ADDRESS   0x52
 PCR device address setting.
 

Detailed Description

Settings for registers of PCR Click driver.

Macro Definition Documentation

◆ PCR_APPLY_CFG_AND_CALIB_CMD

#define PCR_APPLY_CFG_AND_CALIB_CMD   0x00000001ul

PCR commands setting.

Specified commands of PCR Click driver.

◆ PCR_APPLY_CONFIGURATION_CMD

#define PCR_APPLY_CONFIGURATION_CMD   0x00000003ul

◆ PCR_CALIBRATE_CMD

#define PCR_CALIBRATE_CMD   0x00000004ul

◆ PCR_DEVICE_ADDRESS

#define PCR_DEVICE_ADDRESS   0x52

PCR device address setting.

Specified setting for device slave address selection of PCR Click driver.

◆ PCR_DISABLE_UART_LOGS_CMD

#define PCR_DISABLE_UART_LOGS_CMD   0x00000021ul

◆ PCR_ENABLE_UART_LOGS_CMD

#define PCR_ENABLE_UART_LOGS_CMD   0x00000020ul

◆ PCR_LOG_CONFIGURATION_CMD

#define PCR_LOG_CONFIGURATION_CMD   0x00000022ul

◆ PCR_MAX_DISTANCE

#define PCR_MAX_DISTANCE   5000

◆ PCR_MEASURE_DISTANCE_CMD

#define PCR_MEASURE_DISTANCE_CMD   0x00000002ul

◆ PCR_MIN_DISTANCE

#define PCR_MIN_DISTANCE   10

PCR distance setting.

Specified minimum and maximum distance setting of PCR Click driver.

◆ PCR_PIN_STATE_HIGH

#define PCR_PIN_STATE_HIGH   0x01

PCR pin state setting.

Specified pin state of PCR Click driver.

◆ PCR_PIN_STATE_LOW

#define PCR_PIN_STATE_LOW   0x00

◆ PCR_RECALIBRATE_CMD

#define PCR_RECALIBRATE_CMD   0x00000005ul

◆ PCR_RESET_MODULE_CMD

#define PCR_RESET_MODULE_CMD   0x52535421ul

◆ PCR_STATUS_BUSY

#define PCR_STATUS_BUSY   0x80000000ul

◆ PCR_STATUS_CALIB_BUFFER_ERR

#define PCR_STATUS_CALIB_BUFFER_ERR   0x00400000ul

◆ PCR_STATUS_CALIB_BUFFER_OK

#define PCR_STATUS_CALIB_BUFFER_OK   0x00000040ul

◆ PCR_STATUS_CFG_APPLY_ERR

#define PCR_STATUS_CFG_APPLY_ERR   0x00800000ul

◆ PCR_STATUS_CFG_APPLY_OK

#define PCR_STATUS_CFG_APPLY_OK   0x00000080ul

◆ PCR_STATUS_CFG_CREATE_ERR

#define PCR_STATUS_CFG_CREATE_ERR   0x00020000ul

◆ PCR_STATUS_CFG_CREATE_OK

#define PCR_STATUS_CFG_CREATE_OK   0x00000002ul

◆ PCR_STATUS_DETECTOR_BUFFER_ERR

#define PCR_STATUS_DETECTOR_BUFFER_ERR   0x00100000ul

◆ PCR_STATUS_DETECTOR_BUFFER_OK

#define PCR_STATUS_DETECTOR_BUFFER_OK   0x00000010ul

◆ PCR_STATUS_DETECTOR_CALIB_ERR

#define PCR_STATUS_DETECTOR_CALIB_ERR   0x02000000ul

◆ PCR_STATUS_DETECTOR_CALIB_OK

#define PCR_STATUS_DETECTOR_CALIB_OK   0x00000200ul

◆ PCR_STATUS_DETECTOR_CREATE_ERR

#define PCR_STATUS_DETECTOR_CREATE_ERR   0x00080000ul

◆ PCR_STATUS_DETECTOR_CREATE_OK

#define PCR_STATUS_DETECTOR_CREATE_OK   0x00000008ul

◆ PCR_STATUS_DETECTOR_ERR

#define PCR_STATUS_DETECTOR_ERR   0x10000000ul

◆ PCR_STATUS_RSS_REG_ERR

#define PCR_STATUS_RSS_REG_ERR   0x00010000ul

◆ PCR_STATUS_RSS_REG_OK

#define PCR_STATUS_RSS_REG_OK   0x00000001ul

PCR description setting.

Specified setting for description of PCR Click driver.

PCR Detector Status register setting.

Specified setting for Detector Status register of PCR Click driver.

◆ PCR_STATUS_SENSOR_BUFFER_ERR

#define PCR_STATUS_SENSOR_BUFFER_ERR   0x00200000ul

◆ PCR_STATUS_SENSOR_BUFFER_OK

#define PCR_STATUS_SENSOR_BUFFER_OK   0x00000020ul

◆ PCR_STATUS_SENSOR_CALIB_ERR

#define PCR_STATUS_SENSOR_CALIB_ERR   0x01000000ul

◆ PCR_STATUS_SENSOR_CALIB_OK

#define PCR_STATUS_SENSOR_CALIB_OK   0x00000100ul

◆ PCR_STATUS_SENSOR_CREATE_ERR

#define PCR_STATUS_SENSOR_CREATE_ERR   0x00040000ul

◆ PCR_STATUS_SENSOR_CREATE_OK

#define PCR_STATUS_SENSOR_CREATE_OK   0x00000004ul