50 #ifndef LT_PMBusDeviceLTM4676_H_ 51 #define LT_PMBusDeviceLTM4676_H_ 54 #include "../LTPSM_PartFaultLogs/LT_3880FaultLog.h" 78 return (cap_ & capability) == capability;
87 if ( (
id & 0xFFF0) == 0x4400
88 || (
id & 0xFFF0) == 0x4480
89 || (
id & 0xFFF0) == 0x47E0)
class that handles LTC3880 fault logs.
uint32_t getCapabilities()
Get the supported capabilities.
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.
static LT_PMBusDevice * detect(LT_PMBus *pmbus, uint8_t address)
void enableFaultLog(uint8_t address)
LT_PMBusDeviceLTM4676(LT_PMBus *pmbus, uint8_t address)
void dumpBinary(Print *printer=0)
Dumps binary of the fault log to a Print inheriting object, or Serial if none specified.
void clearFaultLog()
Clear the Fault Log.
void release()
Frees the memory reserved for the fault log.
bool hasFaultLog()
Is there a fault log?
void disableFaultLog()
Disable the Fault Log.
bool hasCapability(uint32_t capability)
Is/are these capability(s) supported?
void disableFaultLog(uint8_t address)
void read(uint8_t address)
Reads the fault log from the specified address, reserves memory to hold the data. ...
uint16_t readMfrSpecialId(uint8_t address)
Get speical ID.
void clearFaultLog(uint8_t address)
uint8_t getNumPages(void)
uint8_t getRailAddress(uint8_t address)
Get the rail address of a Controller.
char * getFaultLog()
Get the fault log text (call must free)
void enableFaultLog()
Enable the Fault Log.