summaryrefslogtreecommitdiffstats
path: root/src/occ_405/pss/avsbus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/occ_405/pss/avsbus.h')
-rwxr-xr-xsrc/occ_405/pss/avsbus.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/occ_405/pss/avsbus.h b/src/occ_405/pss/avsbus.h
index f2dfb2e..80b91cf 100755
--- a/src/occ_405/pss/avsbus.h
+++ b/src/occ_405/pss/avsbus.h
@@ -48,9 +48,16 @@ typedef enum
// Setup the AVS Bus for reading
void avsbus_init();
-// Read and return the voltage or current for specified rail
-// (voltage units are mV, current units are in 10mA)
+// Initiate AVS Bus read for specified cmdtype (Voltage / Current)
+// (results can then be read on the next tick)
+void initiate_avsbus_reads(avsbus_cmdtype_e i_cmdType);
+
+// Process AVS Bus read results (or errors) for specified bus/cmdtype.
+// Returns the data requested (voltage units are mV, current units are in 10mA)
+// Predictive error will be logged after MAX_READ_ATTEMPTS failures on the specific
+// bus/cmdtype and an OCC reset will be requested
uint16_t avsbus_read(const avsbus_type_e i_type,
const avsbus_cmdtype_e i_cmdtype);
+
#endif //_AVSBUS_H
OpenPOWER on IntegriCloud