#############################################
# ADS1X58 Arduino Library - keywords.txt
# Syntax coloring for Arduino IDE
#############################################

#############################################
# Classes, Structs, Enums (KEYWORD1)
#############################################
ADS1X58	KEYWORD1
ADS1X58_ChanData	KEYWORD1
ADC_TYPE	KEYWORD1
ADS1X58_SPIRST	KEYWORD1
ADS1X58_MUXMODE	KEYWORD1
ADS1X58_BYPAS	KEYWORD1
ADS1X58_CLKENB	KEYWORD1
ADS1X58_CHOP	KEYWORD1
ADS1X58_STAT	KEYWORD1
ADS1X58_IDLMOD	KEYWORD1
ADS1X58_DLY	KEYWORD1
ADS1X58_SBCS	KEYWORD1
ADS1X58_DRATE	KEYWORD1
ADS1X58_GPIO_MODE	KEYWORD1
ADS1X58_GPIO_STATE	KEYWORD1

#############################################
# Methods (KEYWORD2)
#############################################
readRegister	KEYWORD2
readRegistersMultiple	KEYWORD2
writeRegister	KEYWORD2
writeRegistersMultiple	KEYWORD2
updateRegister	KEYWORD2

readChannelDataDirect	KEYWORD2
readChannelDataCommand	KEYWORD2
waitForReadChannelDataCommand	KEYWORD2
startPulseConversion	KEYWORD2

codeToVoltage	KEYWORD2
readVoltage	KEYWORD2
measOffset	KEYWORD2
measVcc	KEYWORD2
measGain	KEYWORD2
measVref	KEYWORD2
measTempC	KEYWORD2

compensateGain	KEYWORD2
setVref	KEYWORD2
setInactivityResetTimer	KEYWORD2
setChannelMode	KEYWORD2
setBypassMode	KEYWORD2
setClockOutput	KEYWORD2
setChopMode	KEYWORD2
setStatusByte	KEYWORD2
setIdleMode	KEYWORD2
setConversionDelay	KEYWORD2
setSensorBiasCurrent	KEYWORD2
setDataRate	KEYWORD2

setSingleEndedChannel	KEYWORD2
enableAllSingleEndedInputs	KEYWORD2
setDifferentialChannel	KEYWORD2
setFixedChannel	KEYWORD2
chidToName	KEYWORD2

GPIOpinMode	KEYWORD2
GPIOdigitalWrite	KEYWORD2
GPIOdigitalRead	KEYWORD2

#############################################
# Constants (LITERAL1)
#############################################
# Commands
CMD_DATA_READ_DIRECT	LITERAL1
CMD_DATA_READ_COMMAND	LITERAL1
CMD_REG_READ	LITERAL1
CMD_REG_WRITE	LITERAL1
CMD_PULSE_CONVERT	LITERAL1
CMD_RESET	LITERAL1
CMD_MUL_EN	LITERAL1
CMD_ADDRESS	LITERAL1

# Registers
REG_CONFIG0	LITERAL1
REG_CONFIG1	LITERAL1
REG_MUXSCH	LITERAL1
REG_MUXDIF	LITERAL1
REG_MUXSG0	LITERAL1
REG_MUXSG1	LITERAL1
REG_SYSRED	LITERAL1
REG_GPIOC	LITERAL1
REG_GPIOD	LITERAL1
REG_ID	LITERAL1

# Status
STATUS_NEW	LITERAL1
STATUS_OFV	LITERAL1
STATUS_SUPPLY	LITERAL1
STATUS_CHID	LITERAL1

# Channel IDs
CHID_DIFF0	LITERAL1
CHID_DIFF1	LITERAL1
CHID_DIFF2	LITERAL1
CHID_DIFF3	LITERAL1
CHID_DIFF4	LITERAL1
CHID_DIFF5	LITERAL1
CHID_DIFF6	LITERAL1
CHID_DIFF7	LITERAL1
CHID_AIN0	LITERAL1
CHID_AIN1	LITERAL1
CHID_AIN2	LITERAL1
CHID_AIN3	LITERAL1
CHID_AIN4	LITERAL1
CHID_AIN5	LITERAL1
CHID_AIN6	LITERAL1
CHID_AIN7	LITERAL1
CHID_AIN8	LITERAL1
CHID_AIN9	LITERAL1
CHID_AIN10	LITERAL1
CHID_AIN11	LITERAL1
CHID_AIN12	LITERAL1
CHID_AIN13	LITERAL1
CHID_AIN14	LITERAL1
CHID_AIN15	LITERAL1
CHID_OFFSET	LITERAL1
CHID_VCC	LITERAL1
CHID_TEMP	LITERAL1
CHID_GAIN	LITERAL1
CHID_REF	LITERAL1

# Ranges and other constants
ADS1258_RANGE	LITERAL1
ADS1158_RANGE	LITERAL1
ADS1X58_TEMP_COEFF_PCB	LITERAL1
ADS1X58_TEMP_COEFF_FREE	LITERAL1
TIMEOUT_MS	LITERAL1
WRONG_FLOAT	LITERAL1

#############################################
# Masks (LITERAL2)
#############################################
MASK_CONFIG0_SPIRST	LITERAL2
MASK_CONFIG0_MUXMOD	LITERAL2
MASK_CONFIG0_BYPAS	LITERAL2
MASK_CONFIG0_CLKENB	LITERAL2
MASK_CONFIG0_CHOP	LITERAL2
MASK_CONFIG0_STAT	LITERAL2

MASK_CONFIG1_IDLMOD	LITERAL2
MASK_CONFIG1_DLY	LITERAL2
MASK_CONFIG1_SBCS	LITERAL2
MASK_CONFIG1_DRATE	LITERAL2

MASK_MUXSCH_AINP	LITERAL2
MASK_MUXSCH_AINN	LITERAL2
MASK_MUXDIF	LITERAL2
MASK_MUXSG0	LITERAL2
MASK_MUXSG1	LITERAL2

MASK_SYSRED_REF	LITERAL2
MASK_SYSRED_GAIN	LITERAL2
MASK_SYSRED_TEMP	LITERAL2
MASK_SYSRED_VCC	LITERAL2
MASK_SYSRED_OFFSET	LITERAL2

MASK_GPIOC	LITERAL2
MASK_GPIOD	LITERAL2
MASK_ID	LITERAL2
