50 #ifndef LT_PMBusDeviceLTC3882_H_ 51 #define LT_PMBusDeviceLTC3882_H_ 54 #include "../LTPSM_PartFaultLogs/LT_3882FaultLog.h" 78 return (cap_ & capability) == capability;
87 if ( (
id & 0xFFF0) == 0x4200
88 || (
id & 0xFFF0) == 0x4240)
uint32_t getCapabilities()
Get the supported capabilities.
void read(uint8_t address)
Reads the fault log from the specified address, reserves memory to hold the data. ...
LT_PMBusDeviceLTC3882(LT_PMBus *pmbus, uint8_t address)
class that handles LTC3882 fault logs.
char * getFaultLog()
Get the fault log text (call must free)
uint8_t getNumPages(void)
static LT_PMBusDevice * detect(LT_PMBus *pmbus, uint8_t address)
uint8_t waitForNotBusy(uint8_t address)
Read MFR_COMMON until not Busy.
bool hasFaultLog(uint8_t address)
LTC PSM Controller Device.
virtual uint8_t waitForAck(uint8_t address, uint8_t command)=0
Read with the address and command in loop until ack, then issue stop.
void enableFaultLog(uint8_t address)
void enableFaultLog()
Enable the Fault Log.
bool hasCapability(uint32_t capability)
Is/are these capability(s) supported?
void release()
Frees the memory reserved for the fault log.
bool hasFaultLog()
Is there a fault log?
void dumpBinary(Print *printer=0)
Dumps binary of the fault log to a Print inheriting object, or Serial if none specified.
void disableFaultLog()
Disable the Fault Log.
void disableFaultLog(uint8_t address)
uint16_t readMfrSpecialId(uint8_t address)
Get speical ID.
void clearFaultLog(uint8_t address)
void clearFaultLog()
Clear the Fault Log.
uint8_t getRailAddress(uint8_t address)
Get the rail address of a Controller.