50 #ifndef LT_PMBusDeviceLTC2980_H_ 51 #define LT_PMBusDeviceLTC2980_H_ 54 #include "../LTPSM_PartFaultLogs/LT_2977FaultLog.h" 78 return (cap_ & capability) == capability;
83 uint8_t *model = (uint8_t *) calloc(8,1);
84 memcpy(model,
"LTC2980", 7);
85 return (
char *) model;
99 if ( (
id & 0xFFF0) == 0x0130
100 || (
id & 0xFFF0) == 0x8030
101 || (
id & 0xFFF0) == 0x8040)
bool hasCapability(uint32_t capability)
Is/are these capability(s) supported?
class that handles LTC2977 fault logs.
void clearFaultLog()
Clear the Fault Log.
uint8_t getNumPages(void)
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 enableFaultLog()
Enable the Fault Log.
void read(uint8_t address)
Reads the fault log from the specified address, reserves memory to hold the data. ...
uint8_t waitForNotBusy(uint8_t address)
Read MFR_COMMON until not Busy.
bool hasFaultLog(uint8_t address)
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)
bool hasFaultLog()
Is there a fault log?
char * getFaultLog()
Get the fault log text (call must free)
void disableFaultLog(uint8_t address)
LT_PMBusDeviceLTC2980(LT_PMBus *pmbus, uint8_t address)
uint16_t readMfrSpecialId(uint8_t address)
Get speical ID.
void clearFaultLog(uint8_t address)
void release()
Frees the memory reserved for the fault log.
static LT_PMBusDevice * detect(LT_PMBus *pmbus, uint8_t address)
uint32_t getCapabilities()
Get the supported capabilities.