2021-11-05 14:39:16 -04:00
|
|
|
# Syntax Colouring Map For INA226
|
2021-05-30 08:22:31 -04:00
|
|
|
|
2021-12-20 02:48:45 -05:00
|
|
|
|
2021-06-22 09:22:35 -04:00
|
|
|
# Data types (KEYWORD1)
|
2021-05-30 08:22:31 -04:00
|
|
|
INA226 KEYWORD1
|
|
|
|
|
2021-12-20 02:48:45 -05:00
|
|
|
|
2021-05-30 08:22:31 -04:00
|
|
|
# Methods and Functions (KEYWORD2)
|
|
|
|
begin KEYWORD2
|
|
|
|
isConnected KEYWORD2
|
2022-07-02 04:42:38 -04:00
|
|
|
getAddress KEYWORD2
|
2021-05-30 08:22:31 -04:00
|
|
|
|
|
|
|
getShuntVoltage KEYWORD2
|
|
|
|
getBusVoltage KEYWORD2
|
|
|
|
getPower KEYWORD2
|
|
|
|
getCurrent KEYWORD2
|
|
|
|
|
2021-06-22 09:22:35 -04:00
|
|
|
getShuntVoltage_mV KEYWORD2
|
|
|
|
getPower_mW KEYWORD2
|
|
|
|
getCurrent_mA KEYWORD2
|
|
|
|
|
2021-06-22 14:38:00 -04:00
|
|
|
getShuntVoltage_uV KEYWORD2
|
|
|
|
getPower_uW KEYWORD2
|
|
|
|
getCurrent_uA KEYWORD2
|
|
|
|
|
2021-05-30 08:22:31 -04:00
|
|
|
reset KEYWORD2
|
|
|
|
setAverage KEYWORD2
|
|
|
|
getAverage KEYWORD2
|
|
|
|
setBusVoltageConversionTime KEYWORD2
|
|
|
|
getBusVoltageConversionTime KEYWORD2
|
|
|
|
setShuntVoltageConversionTime KEYWORD2
|
|
|
|
getShuntVoltageConversionTime KEYWORD2
|
|
|
|
|
|
|
|
setMaxCurrentShunt KEYWORD2
|
|
|
|
getCurrentLSB KEYWORD2
|
2021-06-22 14:38:00 -04:00
|
|
|
getCurrentLSB_mA KEYWORD2
|
|
|
|
getCurrentLSB_uA KEYWORD2
|
2021-06-22 09:22:35 -04:00
|
|
|
getShunt KEYWORD2
|
|
|
|
getMaxCurrent KEYWORD2
|
2021-05-30 08:22:31 -04:00
|
|
|
|
|
|
|
setMode KEYWORD2
|
|
|
|
getMode KEYWORD2
|
|
|
|
shutDown KEYWORD2
|
2021-06-22 09:22:35 -04:00
|
|
|
|
2021-05-30 08:22:31 -04:00
|
|
|
setModeShuntTrigger KEYWORD2
|
|
|
|
setModeBusTrigger KEYWORD2
|
|
|
|
setModeShuntBusTrigger KEYWORD2
|
|
|
|
setModeShuntContinuous KEYWORD2
|
|
|
|
setModeBusContinuous KEYWORD2
|
|
|
|
setModeShuntBusContinuous KEYWORD2
|
|
|
|
|
|
|
|
setAlertRegister KEYWORD2
|
|
|
|
getAlertFlag KEYWORD2
|
|
|
|
setAlertLimit KEYWORD2
|
|
|
|
getAlertLimit KEYWORD2
|
|
|
|
|
|
|
|
getManufacturerID KEYWORD2
|
|
|
|
getDieID KEYWORD2
|
|
|
|
|
|
|
|
|
|
|
|
# Constants (LITERAL1)
|
|
|
|
INA226_LIB_VERSION LITERAL1
|
2021-06-22 09:22:35 -04:00
|
|
|
|
|
|
|
INA226_SHUNT_OVER_VOLTAGE LITERAL1
|
|
|
|
INA226_SHUNT_UNDER_VOLTAGE LITERAL1
|
|
|
|
INA226_BUS_OVER_VOLTAGE LITERAL1
|
|
|
|
INA226_BUS_UNDER_VOLTAGE LITERAL1
|
|
|
|
INA226_POWER_OVER_LIMIT LITERAL1
|
|
|
|
INA226_CONVERSION_READY LITERAL1
|
|
|
|
|
|
|
|
INA226_ALERT_FUNCTION_FLAG LITERAL1
|
|
|
|
INA226_CONVERSION_READY_FLAG LITERAL1
|
|
|
|
INA226_MATH_OVERFLOW_FLAG LITERAL1
|
|
|
|
INA226_ALERT_POLARITY_FLAG LITERAL1
|
|
|
|
INA226_ALERT_LATCH_ENABLE_FLAG LITERAL1
|
|
|
|
|
2022-08-28 01:32:00 -04:00
|
|
|
INA226_ERR_NONE LITERAL1
|
|
|
|
INA226_ERR_SHUNTVOLTAGE_HIGH LITERAL1
|
|
|
|
INA226_ERR_MAXCURRENT_LOW LITERAL1
|
|
|
|
INA226_ERR_SHUNT_LOW LITERAL1
|
|
|
|
|