loadcell6 2.0.0.0
Load Cell 6 Registers Settings

Settings for registers of Load Cell 6 Click driver. More...

Macros

#define LOADCELL6_CMD_RATE0   0x01
 Load Cell 6 description setting.
 
#define LOADCELL6_CMD_RATE1   0x02
 
#define LOADCELL6_CMD_RATE2   0x04
 
#define LOADCELL6_CMD_RATE3   0x08
 
#define LOADCELL6_CMD_IMPD   0x10
 
#define LOADCELL6_CMD_CAL   0x20
 
#define LOADCELL6_CMD_START   0x80
 
#define LOADCELL6_CMD_REG_ACCESS_MODE   0x40
 
#define LOADCELL6_STAT_RDY   0x0001
 Load Cell 6 STAT register bits description.
 
#define LOADCELL6_STAT_MSTAT   0x0002
 
#define LOADCELL6_STAT_DOR   0x0004
 
#define LOADCELL6_STAT_SYSGOR   0x0008
 
#define LOADCELL6_STAT_RATE0   0x0010
 
#define LOADCELL6_STAT_RATE1   0x0020
 
#define LOADCELL6_STAT_RATE2   0x0040
 
#define LOADCELL6_STAT_RATE3   0x0080
 
#define LOADCELL6_STAT_AOR   0x0100
 
#define LOADCELL6_STAT_RDERR   0x0200
 
#define LOADCELL6_STAT_PDSTAT0   0x0400
 
#define LOADCELL6_STAT_PDSTAT1   0x0800
 
#define LOADCELL6_STAT_ERROR   0x4000
 
#define LOADCELL6_STAT_INRESET   0x8000
 
#define LOADCELL6_CTRL1_CONTSC   0x01
 Load Cell 6 CTRL1 register bits description.
 
#define LOADCELL6_CTRL1_SCYCLE   0x02
 
#define LOADCELL6_CTRL1_FORMAT   0x04
 
#define LOADCELL6_CTRL1_U_B   0x08
 
#define LOADCELL6_CTRL1_PD0   0x10
 
#define LOADCELL6_CTRL1_PD1   0x20
 
#define LOADCELL6_CTRL1_SYNC   0x40
 
#define LOADCELL6_CTRL1_EXTCK   0x80
 
#define LOADCELL6_CTRL2_PGAIN_x1   0x00
 Load Cell 6 CTRL2 register bits description.
 
#define LOADCELL6_CTRL2_PGAIN_x2   0x01
 
#define LOADCELL6_CTRL2_PGAIN_x4   0x02
 
#define LOADCELL6_CTRL2_PGAIN_x8   0x03
 
#define LOADCELL6_CTRL2_PGAIN_x16   0x04
 
#define LOADCELL6_CTRL2_PGAIN_x32   0x05
 
#define LOADCELL6_CTRL2_PGAIN_x64   0x06
 
#define LOADCELL6_CTRL2_PGAIN_x128   0x07
 
#define LOADCELL6_CTRL2_PGAGEN   0x08
 
#define LOADCELL6_CTRL2_LPMODE   0x10
 
#define LOADCELL6_CTRL2_BUFEN   0x20
 
#define LOADCELL6_CTRL2_DGAIN_x1   0x00
 
#define LOADCELL6_CTRL2_DGAIN_x2   0x40
 
#define LOADCELL6_CTRL2_DGAIN_x4   0x80
 
#define LOADCELL6_CTRL2_DGAIN_x8   0xC0
 
#define LOADCELL6_CTRL2_DGAIN0   0x40
 
#define LOADCELL6_CTRL2_DGAIN1   0x80
 
#define LOADCELL6_CTRL3_DATA32   0x08
 Load Cell 6 CTRL3 register bits description.
 
#define LOADCELL6_CTRL3_MODBITS   0x10
 
#define LOADCELL6_CTRL3_ENMSYNC   0x20
 
#define LOADCELL6_CTRL3_RESERVED   0x41
 
#define LOADCELL6_CTRL4_DIO1   0x01
 Load Cell 6 CTRL4 register bits description.
 
#define LOADCELL6_CTRL4_DIO2   0x02
 
#define LOADCELL6_CTRL4_DIO3   0x04
 
#define LOADCELL6_CTRL4_DIO4   0x08
 
#define LOADCELL6_CTRL4_DIR1   0x10
 
#define LOADCELL6_CTRL4_DIR2   0x20
 
#define LOADCELL6_CTRL4_DIR3   0x40
 
#define LOADCELL6_CTRL4_DIR4   0x80
 
#define LOADCELL6_CTRL5_NOSCO   0x01
 Load Cell 6 CTRL5 register bits description.
 
#define LOADCELL6_CTRL5_NOSCG   0x02
 
#define LOADCELL6_CTRL5_NOSYSO   0x04
 
#define LOADCELL6_CTRL5_NOSYSG   0x08
 
#define LOADCELL6_CTRL5_CAL0   0x40
 
#define LOADCELL6_CTRL5_CAL1   0x80
 
#define LOADCELL6_DATA_NO_DATA   0
 Load Cell 6 weight data description.
 
#define LOADCELL6_DATA_OK   1
 
#define LOADCELL6_WEIGHT_ZERO   0
 
#define LOADCELL6_WEIGHT_100G   100
 
#define LOADCELL6_WEIGHT_200G   200
 
#define LOADCELL6_WEIGHT_500G   500
 
#define LOADCELL6_WEIGHT_1000G   1000
 
#define LOADCELL6_WEIGHT_5000G   5000
 
#define LOADCELL6_WEIGHT_10000G   10000
 
#define LOADCELL6_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define LOADCELL6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Load Cell 6 Click driver.

Macro Definition Documentation

◆ LOADCELL6_CMD_CAL

#define LOADCELL6_CMD_CAL   0x20

◆ LOADCELL6_CMD_IMPD

#define LOADCELL6_CMD_IMPD   0x10

◆ LOADCELL6_CMD_RATE0

#define LOADCELL6_CMD_RATE0   0x01

Load Cell 6 description setting.

Specified setting for description of Load Cell 6 Click driver.

Load Cell 6 commands description.

Specified commands for description of Load Cell 6 Click driver.

◆ LOADCELL6_CMD_RATE1

#define LOADCELL6_CMD_RATE1   0x02

◆ LOADCELL6_CMD_RATE2

#define LOADCELL6_CMD_RATE2   0x04

◆ LOADCELL6_CMD_RATE3

#define LOADCELL6_CMD_RATE3   0x08

◆ LOADCELL6_CMD_REG_ACCESS_MODE

#define LOADCELL6_CMD_REG_ACCESS_MODE   0x40

◆ LOADCELL6_CMD_START

#define LOADCELL6_CMD_START   0x80

◆ LOADCELL6_CTRL1_CONTSC

#define LOADCELL6_CTRL1_CONTSC   0x01

Load Cell 6 CTRL1 register bits description.

Specified CTRL1 register bits for description of Load Cell 6 Click driver.

◆ LOADCELL6_CTRL1_EXTCK

#define LOADCELL6_CTRL1_EXTCK   0x80

◆ LOADCELL6_CTRL1_FORMAT

#define LOADCELL6_CTRL1_FORMAT   0x04

◆ LOADCELL6_CTRL1_PD0

#define LOADCELL6_CTRL1_PD0   0x10

◆ LOADCELL6_CTRL1_PD1

#define LOADCELL6_CTRL1_PD1   0x20

◆ LOADCELL6_CTRL1_SCYCLE

#define LOADCELL6_CTRL1_SCYCLE   0x02

◆ LOADCELL6_CTRL1_SYNC

#define LOADCELL6_CTRL1_SYNC   0x40

◆ LOADCELL6_CTRL1_U_B

#define LOADCELL6_CTRL1_U_B   0x08

◆ LOADCELL6_CTRL2_BUFEN

#define LOADCELL6_CTRL2_BUFEN   0x20

◆ LOADCELL6_CTRL2_DGAIN0

#define LOADCELL6_CTRL2_DGAIN0   0x40

◆ LOADCELL6_CTRL2_DGAIN1

#define LOADCELL6_CTRL2_DGAIN1   0x80

◆ LOADCELL6_CTRL2_DGAIN_x1

#define LOADCELL6_CTRL2_DGAIN_x1   0x00

◆ LOADCELL6_CTRL2_DGAIN_x2

#define LOADCELL6_CTRL2_DGAIN_x2   0x40

◆ LOADCELL6_CTRL2_DGAIN_x4

#define LOADCELL6_CTRL2_DGAIN_x4   0x80

◆ LOADCELL6_CTRL2_DGAIN_x8

#define LOADCELL6_CTRL2_DGAIN_x8   0xC0

◆ LOADCELL6_CTRL2_LPMODE

#define LOADCELL6_CTRL2_LPMODE   0x10

◆ LOADCELL6_CTRL2_PGAGEN

#define LOADCELL6_CTRL2_PGAGEN   0x08

◆ LOADCELL6_CTRL2_PGAIN_x1

#define LOADCELL6_CTRL2_PGAIN_x1   0x00

Load Cell 6 CTRL2 register bits description.

Specified CTRL2 register bits for description of Load Cell 6 Click driver.

◆ LOADCELL6_CTRL2_PGAIN_x128

#define LOADCELL6_CTRL2_PGAIN_x128   0x07

◆ LOADCELL6_CTRL2_PGAIN_x16

#define LOADCELL6_CTRL2_PGAIN_x16   0x04

◆ LOADCELL6_CTRL2_PGAIN_x2

#define LOADCELL6_CTRL2_PGAIN_x2   0x01

◆ LOADCELL6_CTRL2_PGAIN_x32

#define LOADCELL6_CTRL2_PGAIN_x32   0x05

◆ LOADCELL6_CTRL2_PGAIN_x4

#define LOADCELL6_CTRL2_PGAIN_x4   0x02

◆ LOADCELL6_CTRL2_PGAIN_x64

#define LOADCELL6_CTRL2_PGAIN_x64   0x06

◆ LOADCELL6_CTRL2_PGAIN_x8

#define LOADCELL6_CTRL2_PGAIN_x8   0x03

◆ LOADCELL6_CTRL3_DATA32

#define LOADCELL6_CTRL3_DATA32   0x08

Load Cell 6 CTRL3 register bits description.

Specified CTRL3 register bits for description of Load Cell 6 Click driver.

◆ LOADCELL6_CTRL3_ENMSYNC

#define LOADCELL6_CTRL3_ENMSYNC   0x20

◆ LOADCELL6_CTRL3_MODBITS

#define LOADCELL6_CTRL3_MODBITS   0x10

◆ LOADCELL6_CTRL3_RESERVED

#define LOADCELL6_CTRL3_RESERVED   0x41

◆ LOADCELL6_CTRL4_DIO1

#define LOADCELL6_CTRL4_DIO1   0x01

Load Cell 6 CTRL4 register bits description.

Specified CTRL4 register bits for description of Load Cell 6 Click driver.

◆ LOADCELL6_CTRL4_DIO2

#define LOADCELL6_CTRL4_DIO2   0x02

◆ LOADCELL6_CTRL4_DIO3

#define LOADCELL6_CTRL4_DIO3   0x04

◆ LOADCELL6_CTRL4_DIO4

#define LOADCELL6_CTRL4_DIO4   0x08

◆ LOADCELL6_CTRL4_DIR1

#define LOADCELL6_CTRL4_DIR1   0x10

◆ LOADCELL6_CTRL4_DIR2

#define LOADCELL6_CTRL4_DIR2   0x20

◆ LOADCELL6_CTRL4_DIR3

#define LOADCELL6_CTRL4_DIR3   0x40

◆ LOADCELL6_CTRL4_DIR4

#define LOADCELL6_CTRL4_DIR4   0x80

◆ LOADCELL6_CTRL5_CAL0

#define LOADCELL6_CTRL5_CAL0   0x40

◆ LOADCELL6_CTRL5_CAL1

#define LOADCELL6_CTRL5_CAL1   0x80

◆ LOADCELL6_CTRL5_NOSCG

#define LOADCELL6_CTRL5_NOSCG   0x02

◆ LOADCELL6_CTRL5_NOSCO

#define LOADCELL6_CTRL5_NOSCO   0x01

Load Cell 6 CTRL5 register bits description.

Specified CTRL5 register bits for description of Load Cell 6 Click driver.

◆ LOADCELL6_CTRL5_NOSYSG

#define LOADCELL6_CTRL5_NOSYSG   0x08

◆ LOADCELL6_CTRL5_NOSYSO

#define LOADCELL6_CTRL5_NOSYSO   0x04

◆ LOADCELL6_DATA_NO_DATA

#define LOADCELL6_DATA_NO_DATA   0

Load Cell 6 weight data description.

Specified weight data for description of Load Cell 6 Click driver.

◆ LOADCELL6_DATA_OK

#define LOADCELL6_DATA_OK   1

◆ LOADCELL6_SET_DATA_SAMPLE_EDGE

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

◆ LOADCELL6_SET_DATA_SAMPLE_MIDDLE

#define LOADCELL6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ LOADCELL6_STAT_AOR

#define LOADCELL6_STAT_AOR   0x0100

◆ LOADCELL6_STAT_DOR

#define LOADCELL6_STAT_DOR   0x0004

◆ LOADCELL6_STAT_ERROR

#define LOADCELL6_STAT_ERROR   0x4000

◆ LOADCELL6_STAT_INRESET

#define LOADCELL6_STAT_INRESET   0x8000

◆ LOADCELL6_STAT_MSTAT

#define LOADCELL6_STAT_MSTAT   0x0002

◆ LOADCELL6_STAT_PDSTAT0

#define LOADCELL6_STAT_PDSTAT0   0x0400

◆ LOADCELL6_STAT_PDSTAT1

#define LOADCELL6_STAT_PDSTAT1   0x0800

◆ LOADCELL6_STAT_RATE0

#define LOADCELL6_STAT_RATE0   0x0010

◆ LOADCELL6_STAT_RATE1

#define LOADCELL6_STAT_RATE1   0x0020

◆ LOADCELL6_STAT_RATE2

#define LOADCELL6_STAT_RATE2   0x0040

◆ LOADCELL6_STAT_RATE3

#define LOADCELL6_STAT_RATE3   0x0080

◆ LOADCELL6_STAT_RDERR

#define LOADCELL6_STAT_RDERR   0x0200

◆ LOADCELL6_STAT_RDY

#define LOADCELL6_STAT_RDY   0x0001

Load Cell 6 STAT register bits description.

Specified STAT register bits for description of Load Cell 6 Click driver.

◆ LOADCELL6_STAT_SYSGOR

#define LOADCELL6_STAT_SYSGOR   0x0008

◆ LOADCELL6_WEIGHT_10000G

#define LOADCELL6_WEIGHT_10000G   10000

◆ LOADCELL6_WEIGHT_1000G

#define LOADCELL6_WEIGHT_1000G   1000

◆ LOADCELL6_WEIGHT_100G

#define LOADCELL6_WEIGHT_100G   100

◆ LOADCELL6_WEIGHT_200G

#define LOADCELL6_WEIGHT_200G   200

◆ LOADCELL6_WEIGHT_5000G

#define LOADCELL6_WEIGHT_5000G   5000

◆ LOADCELL6_WEIGHT_500G

#define LOADCELL6_WEIGHT_500G   500

◆ LOADCELL6_WEIGHT_ZERO

#define LOADCELL6_WEIGHT_ZERO   0