########################################################
# Syntax Coloring Map For PZEMPlus Library
########################################################

########################################################
# KEYWORD1 (Orange) - Main class and type names
########################################################

PZEMPlus	KEYWORD1
RS485	KEYWORD1
PZEM004T	KEYWORD1
PZEM014	KEYWORD1
PZEM016	KEYWORD1
PZEM003	KEYWORD1
PZEM017	KEYWORD1
PZEM6L24	KEYWORD1
PZIOTE02	KEYWORD1

########################################################
# KEYWORD2 (Brown) - Methods and functions
########################################################

begin	KEYWORD2
readHoldingRegisters	KEYWORD2
readInputRegisters	KEYWORD2
writeSingleRegister	KEYWORD2
writeMultipleRegisters	KEYWORD2
resetEnergy	KEYWORD2
calculateCRC16	KEYWORD2
verifyCRC16	KEYWORD2
setTimeouts	KEYWORD2
combineRegisters	KEYWORD2
clearBuffer	KEYWORD2
setEnable	KEYWORD2
getSerial	KEYWORD2
enableTransmit	KEYWORD2
enableReceive	KEYWORD2
readVoltage	KEYWORD2
readCurrent	KEYWORD2
readVoltageCurrent	KEYWORD2
readPower	KEYWORD2
readEnergy	KEYWORD2
readFrequency	KEYWORD2
readPowerFactor	KEYWORD2
readPowerAlarm	KEYWORD2
readAll	KEYWORD2
setPowerAlarm	KEYWORD2
setAddress	KEYWORD2
getPowerAlarm	KEYWORD2
getAddress	KEYWORD2
readActivePower	KEYWORD2
readReactivePower	KEYWORD2
readApparentPower	KEYWORD2
readActiveEnergy	KEYWORD2
readReactiveEnergy	KEYWORD2
readApparentEnergy	KEYWORD2
readVoltagePhaseAngle	KEYWORD2
readCurrentPhaseAngle	KEYWORD2
setBaudrateAndConnectionType	KEYWORD2
setFrequency	KEYWORD2
getSoftwareHardwareSettings	KEYWORD2
getBaudrate	KEYWORD2
getConnectionType	KEYWORD2
getFrequency	KEYWORD2
readHighVoltageAlarm	KEYWORD2
readLowVoltageAlarm	KEYWORD2
setHighVoltageAlarm	KEYWORD2
setLowVoltageAlarm	KEYWORD2
setCurrentRange	KEYWORD2
getHighVoltageAlarm	KEYWORD2
getLowVoltageAlarm	KEYWORD2
getCurrentRange	KEYWORD2

########################################################
# LITERAL1 (Dark blue) - Constants, #define definitions, enums, etc.
########################################################

MODBUS_READ_HOLDING_REGISTERS	LITERAL1
MODBUS_READ_INPUT_REGISTERS	LITERAL1
MODBUS_WRITE_SINGLE_REGISTER	LITERAL1
MODBUS_WRITE_MULTIPLE_REGISTERS	LITERAL1
MODBUS_RESET_ENERGY	LITERAL1
PZEM_VOLTAGE_REG	LITERAL1
PZEM_CURRENT_LOW_REG	LITERAL1
PZEM_POWER_LOW_REG	LITERAL1
PZEM_ENERGY_LOW_REG	LITERAL1
PZEM_FREQUENCY_REG	LITERAL1
PZEM_POWER_FACTOR_REG	LITERAL1
PZEM_POWER_ALARM_REG	LITERAL1
PZEM_POWER_THRESHOLD_REG	LITERAL1
PZEM_ADDRESS_REG	LITERAL1
PZEM_VOLTAGE_RESOLUTION	LITERAL1
PZEM_CURRENT_RESOLUTION	LITERAL1
PZEM_POWER_RESOLUTION	LITERAL1
PZEM_POWER_ALARM_RESOLUTION	LITERAL1
PZEM_ENERGY_RESOLUTION	LITERAL1
PZEM_FREQUENCY_RESOLUTION	LITERAL1
PZEM_POWER_FACTOR_RESOLUTION	LITERAL1
PZEM_CURRENT_REG	LITERAL1
PZEM_VOLTAGE_PHASE_REG	LITERAL1
PZEM_CURRENT_PHASE_REG	LITERAL1
PZEM_ACTIVE_POWER_REG	LITERAL1
PZEM_REACTIVE_POWER_REG	LITERAL1
PZEM_APPARENT_POWER_REG	LITERAL1
PZEM_ACTIVE_POWER_COMBINED_REG	LITERAL1
PZEM_REACTIVE_POWER_COMBINED_REG	LITERAL1
PZEM_APPARENT_POWER_COMBINED_REG	LITERAL1
PZEM_POWER_FACTOR_A_B_REG	LITERAL1
PZEM_POWER_FACTOR_C_COMBINED_REG	LITERAL1
PZEM_ACTIVE_ENERGY_REG	LITERAL1
PZEM_REACTIVE_ENERGY_REG	LITERAL1
PZEM_APPARENT_ENERGY_REG	LITERAL1
PZEM_ACTIVE_ENERGY_COMBINED_REG	LITERAL1
PZEM_REACTIVE_ENERGY_COMBINED_REG	LITERAL1
PZEM_APPARENT_ENERGY_COMBINED_REG	LITERAL1
PZEM_BAUDRATE_TYPE_REG	LITERAL1
PZEM_FREQUENCY_SYSTEM_REG	LITERAL1
PZEM_PHASE_RESOLUTION	LITERAL1
PZEM_RESET_ENERGY_A	LITERAL1
PZEM_RESET_ENERGY_B	LITERAL1
PZEM_RESET_ENERGY_C	LITERAL1
PZEM_RESET_ENERGY_COMBINED	LITERAL1
PZEM_RESET_ENERGY_ALL	LITERAL1
PZEM_BAUDRATE_2400	LITERAL1
PZEM_BAUDRATE_4800	LITERAL1
PZEM_BAUDRATE_9600	LITERAL1
PZEM_BAUDRATE_19200	LITERAL1
PZEM_BAUDRATE_38400	LITERAL1
PZEM_BAUDRATE_57600	LITERAL1
PZEM_BAUDRATE_115200	LITERAL1
PZEM_CONNECTION_3PHASE_4WIRE	LITERAL1
PZEM_CONNECTION_3PHASE_3WIRE	LITERAL1
PZEM_FREQUENCY_50HZ	LITERAL1
PZEM_FREQUENCY_60HZ	LITERAL1
PZEM_HIGH_VOLTAGE_ALARM_REG	LITERAL1
PZEM_LOW_VOLTAGE_ALARM_REG	LITERAL1
PZEM_HIGH_VOLTAGE_THRESHOLD_REG	LITERAL1
PZEM_LOW_VOLTAGE_THRESHOLD_REG	LITERAL1
PZEM_CURRENT_RANGE_REG	LITERAL1
PZEM_HIGH_VOLTAGE_ALARM_RESOLUTION	LITERAL1
PZEM_LOW_VOLTAGE_ALARM_RESOLUTION	LITERAL1
PZEM_CURRENT_RANGE_100A	LITERAL1
PZEM_CURRENT_RANGE_50A	LITERAL1
PZEM_CURRENT_RANGE_200A	LITERAL1
PZEM_CURRENT_RANGE_300A	LITERAL1
