# modules/max72xx/max72xx.h File Reference

## Defines
#define | MAX72XX_NUM_CHAINS 1
#define | MAX72XX_NUM_DEVICES_PER_CHAIN 16
#define | MAX72XX_SPI 2
#define | MAX72XX_SPI_RC_PIN_CHAIN1 0
#define | MAX72XX_SPI_RC_PIN_CHAIN2 1
#define | MAX72XX_SPI_OUTPUTS_OD 0
#define | MAX72XX_REG_NOP 0x00
#define | MAX72XX_REG_DIGIT0 0x01
#define | MAX72XX_REG_DIGIT1 0x02
#define | MAX72XX_REG_DIGIT2 0x03
#define | MAX72XX_REG_DIGIT3 0x04
#define | MAX72XX_REG_DIGIT4 0x05
#define | MAX72XX_REG_DIGIT5 0x06
#define | MAX72XX_REG_DIGIT6 0x07
#define | MAX72XX_REG_DIGIT7 0x08
#define | MAX72XX_REG_DECODE_MODE 0x09
#define | MAX72XX_REG_INTENSITY 0x0a
#define | MAX72XX_REG_SCAN_LIMIT 0x0b
#define | MAX72XX_REG_SHUTDOWN 0x0c
#define | MAX72XX_REG_TESTMODE 0x0f
## Functions
s32 | MAX72XX_Init (u32 mode)
s32 | MAX72XX_NumChainsGet (void)
s32 | MAX72XX_NumChainsSet (u8 num_chains)
s32 | MAX72XX_EnabledGet (u8 chain)
s32 | MAX72XX_EnabledSet (u8 chain, u8 enabled)
s32 | MAX72XX_NumDevicesPerChainGet (u8 chain)
s32 | MAX72XX_NumDevicesPerChainSet (u8 chain, u8 num_devices)
s32 | MAX72XX_DigitSet (u8 chain, u8 device, u8 digit, u8 value)
s32 | MAX72XX_AllDigitsSet (u8 chain, u8 device, u8 *values)
s32 | MAX72XX_DigitGet (u8 chain, u8 device, u8 digit)
s32 | MAX72XX_WriteReg (u8 chain, u8 device, u8 reg, u8 value)
s32 | MAX72XX_WriteAllRegs (u8 chain, u8 reg, u8 value)
s32 | MAX72XX_UpdateDigit (u8 chain, u8 digit)
s32 | MAX72XX_UpdateAllDigits (u8 chain)
s32 | MAX72XX_UpdateAllChains (void)

## Define Documentation

#define MAX72XX_NUM_CHAINS 1

#define MAX72XX_NUM_DEVICES_PER_CHAIN 16

#define MAX72XX_REG_DECODE_MODE 0x09

#define MAX72XX_REG_DIGIT0 0x01

#define MAX72XX_REG_DIGIT1 0x02

#define MAX72XX_REG_DIGIT2 0x03

#define MAX72XX_REG_DIGIT3 0x04

#define MAX72XX_REG_DIGIT4 0x05

#define MAX72XX_REG_DIGIT5 0x06

#define MAX72XX_REG_DIGIT6 0x07

#define MAX72XX_REG_DIGIT7 0x08

#define MAX72XX_REG_INTENSITY 0x0a

#define MAX72XX_REG_NOP 0x00

#define MAX72XX_REG_SCAN_LIMIT 0x0b

#define MAX72XX_REG_SHUTDOWN 0x0c

#define MAX72XX_REG_TESTMODE 0x0f

#define MAX72XX_SPI 2

#define MAX72XX_SPI_OUTPUTS_OD 0

#define MAX72XX_SPI_RC_PIN_CHAIN1 0

#define MAX72XX_SPI_RC_PIN_CHAIN2 1