|
#define | PMB_PAGE 0x00 |
|
#define | PMB_OPERATION 0x01 |
|
#define | PMB_ON_OFF_CONFIG 0x02 |
|
#define | PMB_CLEAR_FAULTS 0x03 |
|
#define | PMB_PHASE 0x04 |
|
#define | PMB_PAGE_PLUS_WRITE 0x05 |
|
#define | PMB_ZONE_ACTIVE 0x08 |
|
#define | PMB_WRITE_PROTECT 0x10 |
|
#define | PMB_STORE_DEFAULT_ALL 0x11 |
|
#define | PMB_RESTORE_DEFAULT_ALL 0x12 |
|
#define | PMB_STORE_DEFAULT_CODE 0x13 |
|
#define | PMB_RESTORE_DEFAULT_CODE 0x14 |
|
#define | PMB_STORE_USER_ALL 0x15 |
|
#define | PMB_RESTORE_USER_ALL 0x16 |
|
#define | PMB_STORE_USER_CODE 0x17 |
|
#define | PMB_RESTORE_USER_CODE 0x18 |
|
#define | PMB_CAPABILITY 0x19 |
|
#define | PMB_VOUT_MODE 0x20 |
|
#define | PMB_VOUT_COMMAND 0x21 |
|
#define | PMB_VOUT_TRIM 0x22 |
|
#define | PMB_VOUT_CAL_OFFSET 0x23 |
|
#define | PMB_VOUT_MAX 0x24 |
|
#define | PMB_VOUT_MARGIN_HIGH 0x25 |
|
#define | PMB_VOUT_MARGIN_LOW 0x26 |
|
#define | PMB_VOUT_TRANSITION_RATE 0x27 |
|
#define | PMB_VOUT_DROOP 0x28 |
|
#define | PMB_VOUT_SCALE_LOOP 0x29 |
|
#define | PMB_VOUT_SCALE_MONITOR 0x2A |
|
#define | PMB_VOUT_MIN 0x2B |
|
#define | PMB_POUT_MAX 0x31 |
|
#define | PMB_MAX_DUTY 0x32 |
|
#define | PMB_FREQUENCY_SWITCH 0x33 |
|
#define | PMB_POWER_MODE 0x34 |
|
#define | PMB_VIN_ON 0x35 |
|
#define | PMB_VIN_OFF 0x36 |
|
#define | PMB_INTERLEAVE 0x37 |
|
#define | PMB_IOUT_CAL_GAIN 0x38 |
|
#define | PMB_IOUT_CAL_OFFSET 0x39 |
|
#define | PMB_FAN_CONFIG_1_2 0x3A |
|
#define | PMB_FAN_COMMAND_1 0x3B |
|
#define | PMB_FAN_COMMAND_2 0x3C |
|
#define | PMB_FAN_CONFIG_3_4 0x3D |
|
#define | PMB_FAN_COMMAND_3 0x3E |
|
#define | PMB_FAN_COMMAND_4 0x3F |
|
#define | PMB_VOUT_OV_FAULT_LIMIT 0x40 |
|
#define | PMB_VOUT_OV_FAULT_RESPONSE 0x41 |
|
#define | PMB_VOUT_OV_WARN_LIMIT 0x42 |
|
#define | PMB_VOUT_UV_WARN_LIMIT 0x43 |
|
#define | PMB_VOUT_UV_FAULT_LIMIT 0x44 |
|
#define | PMB_VOUT_UV_FAULT_RESPONSE 0x45 |
|
#define | PMB_IOUT_OC_FAULT_LIMIT 0x46 |
|
#define | PMB_IOUT_OC_FAULT_RESPONSE 0x47 |
|
#define | PMB_IOUT_OC_LV_FAULT_LIMIT 0x48 |
|
#define | PMB_IOUT_OC_LV_FAULT_RESPONSE 0x49 |
|
#define | PMB_IOUT_OC_WARN_LIMIT 0x4A |
|
#define | PMB_IOUT_UC_FAULT_LIMIT 0x4B |
|
#define | PMB_IOUT_UC_FAULT_RESPONSE 0x4C |
|
#define | PMB_OT_FAULT_LIMIT 0x4F |
|
#define | PMB_OT_FAULT_RESPONSE 0x50 |
|
#define | PMB_OT_WARN_LIMIT 0x51 |
|
#define | PMB_UT_WARN_LIMIT 0x52 |
|
#define | PMB_UT_FAULT_LIMIT 0x53 |
|
#define | PMB_UT_FAULT_RESPONSE 0x54 |
|
#define | PMB_VIN_OV_FAULT_LIMIT 0x55 |
|
#define | PMB_VIN_OV_FAULT_RESPONSE 0x56 |
|
#define | PMB_VIN_OV_WARN_LIMIT 0x57 |
|
#define | PMB_VIN_UV_WARN_LIMIT 0x58 |
|
#define | PMB_VIN_UV_FAULT_LIMIT 0x59 |
|
#define | PMB_VIN_UV_FAULT_RESPONSE 0x5A |
|
#define | PMB_IIN_OC_FAULT_LIMIT 0x5B |
|
#define | PMB_IIN_OC_FAULT_RESPONSE 0x5C |
|
#define | PMB_IIN_OC_WARN_LIMIT 0x5D |
|
#define | PMB_POWER_GOOD_ON 0x5E |
|
#define | PMB_POWER_GOOD_OFF 0x5F |
|
#define | PMB_TON_DELAY 0x60 |
|
#define | PMB_TON_RISE 0x61 |
|
#define | PMB_TON_MAX_FAULT_LIMIT 0x62 |
|
#define | PMB_TON_MAX_FAULT_RESPONSE 0x63 |
|
#define | PMB_TOFF_DELAY 0x64 |
|
#define | PMB_TOFF_FALL 0x65 |
|
#define | PMB_TOFF_MAX_WARN_LIMIT 0x66 |
|
#define | PMB_POUT_OP_FAULT_LIMIT 0x68 |
|
#define | PMB_POUT_OP_FAULT_RESPONSE 0x69 |
|
#define | PMB_POUT_OP_WARN_LIMIT 0x6A |
|
#define | PMB_PIN_OP_WARN_LIMIT 0x6B |
|
#define | PMB_STATUS_BYTE 0x78 |
|
#define | PMB_STATUS_WORD 0x79 |
|
#define | PMB_STATUS_VOUT 0x7A |
|
#define | PMB_STATUS_IOUT 0x7B |
|
#define | PMB_STATUS_INPUT 0x7C |
|
#define | PMB_STATUS_TEMPERATURE 0x7D |
|
#define | PMB_STATUS_CML 0x7E |
|
#define | PMB_STATUS_OTHER 0x7F |
|
#define | PMB_STATUS_MFR_SPECIFIC 0x80 |
|
#define | PMB_STATUS_FANS_1_2 0x81 |
|
#define | PMB_STATUS_FANS_3_4 0x82 |
|
#define | PMB_READ_KWH_CONFIG 0x85 |
|
#define | PMB_READ_EIN 0x86 |
|
#define | PMB_READ_EOUT 0x87 |
|
#define | PMB_READ_VIN 0x88 |
|
#define | PMB_READ_IIN 0x89 |
|
#define | PMB_READ_VCAP 0x8A |
|
#define | PMB_READ_VOUT 0x8B |
|
#define | PMB_READ_IOUT 0x8C |
|
#define | PMB_READ_TEMPERATURE_1 0x8D |
|
#define | PMB_READ_TEMPERATURE_2 0x8E |
|
#define | PMB_READ_TEMPERATURE_3 0x8F |
|
#define | PMB_READ_FAN_SPEED_1 0x90 |
|
#define | PMB_READ_FAN_SPEED_2 0x91 |
|
#define | PMB_READ_FAN_SPEED_3 0x92 |
|
#define | PMB_READ_FAN_SPEED_4 0x93 |
|
#define | PMB_READ_DUTY_CYCLE 0x94 |
|
#define | PMB_READ_FREQUENCY 0x95 |
|
#define | PMB_READ_POUT 0x96 |
|
#define | PMB_READ_PIN 0x97 |
|
#define | PMB_PMBUS_REVISION 0x98 |
|
#define | PMB_MFR_ID 0x99 |
|
#define | PMB_MFR_MODEL 0x9A |
|
#define | PMB_MFR_REVISION 0x9B |
|
#define | PMB_MFR_LOCATION 0x9C |
|
#define | PMB_MFR_DATE 0x9D |
|
#define | PMB_MFR_SERIAL 0x9E |
|
#define | PMB_APP_PROFILE_SUPPORT 0x9F |
|
#define | PMB_MFR_VIN_MIN 0xA0 |
|
#define | PMB_MFR_VIN_MAX 0xA1 |
|
#define | PMB_MFR_IIN_MAX 0xA2 |
|
#define | PMB_MFR_PIN_MAX 0xA3 |
|
#define | PMB_MFR_VOUT_MIN 0xA4 |
|
#define | PMB_MFR_VOUT_MAX 0xA5 |
|
#define | PMB_MFR_IOUT_MAX 0xA6 |
|
#define | PMB_MFR_POUT_MAX 0xA7 |
|
#define | PMB_MFR_TAMBIENT_MAX 0xA8 |
|
#define | PMB_MFR_TAMBIENT_MIN 0xA9 |
|
#define | PMB_MFR_EFFICIENCY_LL 0xAA |
|
#define | PMB_MFR_EFFICIENCY_HL 0xAB |
|
#define | PMB_MFR_PIN_ACCURACY 0xAC |
|
#define | PMB_IC_DEVICE_ID 0xAD |
|
#define | PMB_IC_DEVICE_REV 0xAE |
|
#define | PMB_USER_DATA_00 0xB0 |
|
#define | PMB_USER_DATA_01 0xB1 |
|
#define | PMB_USER_DATA_02 0xB2 |
|
#define | PMB_USER_DATA_03 0xB3 |
|
#define | PMB_USER_DATA_04 0xB4 |
|
#define | PMB_USER_DATA_05 0xB5 |
|
#define | PMB_USER_DATA_06 0xB6 |
|
#define | PMB_USER_DATA_07 0xB7 |
|
#define | PMB_USER_DATA_08 0xB8 |
|
#define | PMB_USER_DATA_09 0xB9 |
|
#define | PMB_USER_DATA_10 0xBA |
|
#define | PMB_USER_DATA_11 0xBB |
|
#define | PMB_USER_DATA_12 0xBC |
|
#define | PMB_USER_DATA_13 0xBD |
|
#define | PMB_USER_DATA_14 0xBE |
|
#define | PMB_USER_DATA_15 0xBF |
|
#define | PMB_MFR_MAX_TEMP_1 0xC0 |
|
#define | PMB_MFR_MAX_TEMP_2 0xC1 |
|
#define | PMB_MFR_MAX_TEMP_3 0xC2 |
|
#define | PMBUS_RET_OK (1) |
| Return value when successful.
|
|
#define | PMBUS_RET_ERROR (-1) |
| Return value when an error ocurred.
|
|
#define | PMB_MAX_PACKET_SIZE SMB_MAX_PACKET_SIZE |
| Max packet size == SMBus max packet size.
|
|
#define | PMBUS_ARA (0x0C) |
| Alert Response Address.
|
|
|
void | PMBus_init (uint16_t i2cAddr, uint32_t busClk) |
| Initialize the PMBus Interface. More...
|
|
void | PMBus_processInt () |
| I2C Interrupt Service routine. More...
|
|
int8_t | PMBus_cmdRead (uint8_t slaveAddress, uint8_t commandId, uint8_t *rxData, uint8_t *rxSize, uint32_t timeout) |
| Perform a PMBus read for the given PMBus command id. More...
|
|
int8_t | PMBus_cmdWrite (uint8_t slaveAddress, uint8_t commandId, uint8_t *txData, uint8_t txSize, uint32_t timeout) |
| Perform a PMBus write for the given PMBus command id. More...
|
|
int8_t | PMBus_cmdSendByte (uint8_t slaveAddress, uint8_t txData, uint32_t timeout) |
| Sends byte to the PMBus slave. More...
|
|
int8_t | PMBus_cmdWriteByte (uint8_t slaveAddress, uint8_t commandId, uint8_t *txData, uint32_t timeout) |
| Writes a data byte to the PMBus slave. More...
|
|
int8_t | PMBus_cmdWriteWord (uint8_t slaveAddress, uint8_t commandId, uint8_t *txData, uint32_t timeout) |
| Writes a word to the PMBus slave. More...
|
|
int8_t | PMBus_cmdBlockWrite (uint8_t slaveAddress, uint8_t commandId, uint8_t *txData, uint8_t txSize, uint32_t timeout) |
| Writes a data block the PMBus slave. More...
|
|
int8_t | PMBus_cmdReceiveByte (uint8_t slaveAddress, uint8_t *rxData, uint32_t timeout) |
| Receives a data byte from the PMBus slave. More...
|
|
int8_t | PMBus_cmdReadByte (uint8_t slaveAddress, uint8_t commandId, uint8_t *rxData, uint32_t timeout) |
| Reads a data byte from the PMBus slave. More...
|
|
int8_t | PMBus_cmdReadWord (uint8_t slaveAddress, uint8_t commandId, uint8_t *rxData, uint32_t timeout) |
| Reads a data word from the PMBus slave. More...
|
|
int8_t | PMBus_cmdBlockRead (uint8_t slaveAddress, uint8_t commandId, uint8_t *rxData, uint8_t *rxSize, uint32_t timeout) |
| Reads a block of data from the PMBus slave. More...
|
|
int8_t | PMBus_cmdProcessCall (uint8_t slaveAddress, uint8_t commandByte, uint8_t *txData, uint8_t *rxData, uint32_t timeout) |
| Sends a Process call command to the PMBus slave. More...
|
|
int8_t | PMBus_cmdBlockWriteBlockReadProcessCall (uint8_t slaveAddress, uint8_t commandId, uint8_t *txData, uint8_t txSize, uint8_t *rxData, uint8_t *rxSize, uint32_t timeout) |
| Sends a Block-Write, Block-Read, Process Call to the PMBus slave. More...
|
|
int8_t | PMBus_ReceiveByteARA (uint8_t *rxData, uint32_t timeout) |
| Sends a Receive Byte to Alert Response Address to request. More...
|
|