50 #ifndef LT_PMBusDeviceLTM4675_H_ 51 #define LT_PMBusDeviceLTM4675_H_ 54 #include "../LTPSM_PartFaultLogs/LT_3880FaultLog.h" 85 return (cap_ & capability) == capability;
94 if ( (
id & 0xFFF0) == 0x47A0)
uint32_t getCapabilities()
Get the supported capabilities.
class that handles LTC3880 fault logs.
void disableFaultLog()
Disable the Fault Log.
LT_PMBusDeviceLTM4675(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 dumpBinary(Print *printer=0)
Dumps binary of the fault log to a Print inheriting object, or Serial if none specified.
char * getFaultLog()
Get the fault log text (call must free)
uint8_t getNumPages(void)
void release()
Frees the memory reserved for the fault log.
static LT_PMBusDevice * detect(LT_PMBus *pmbus, uint8_t address)
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 enableFaultLog()
Enable the Fault Log.
void clearFaultLog(uint8_t address)
void clearFaultLog()
Clear the Fault Log.
bool hasFaultLog()
Is there a fault log?
uint8_t getRailAddress(uint8_t address)
Get the rail address of a Controller.