OpenBIC
OpenSource Bridge-IC
xdpe15284.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  XDPE15284_WRITE_PROTECT_OPTIONAL { XDPE15284_ENABLE_WRITE_PROTECT , XDPE15284_DISABLE_WRITE_PROTECT }
 
enum  XDPE15284_WRITE_PROTECT_REG_VAL { XDPE15284_DISABLE_WRITE_PROTECT_VAL = 0x00 , XDPE15284_DISABLE_ALL_WRITE_EXCEPT_FIVE_COMMANDS_VAL = 0x20 , XDPE15284_DISABLE_ALL_WRITE_EXCEPT_THREE_COMMANDS_VAL = 0x40 , XDPE15284_DISABLE_ALL_WRITE_EXCEPT_WRITE_PROTECT_VAL = 0x80 }
 
enum  XDPE15284_STATUS_BIT {
  XDPE15284_NONE_OF_ABOVE = BIT(0) , XDPE15284_COMMUNICATION_MEMORY_LOGIC_BIT = BIT(1) , XDPE15284_TEMPERATURE_FAULT_BIT = BIT(2) , XDPE15284_UNDER_VOLTAGE_FAULT_BIT = BIT(3) ,
  XDPE15284_OVER_CURRENT_FAULT_BIT = BIT(4) , XDPE15284_OVER_VOLTAGE_FAULT_BIT = BIT(5) , XDPE15284_OUTPUT_OFF_BIT = BIT(6) , XDPE15284_BUSY_BIT = BIT(7)
}
 

Functions

bool xdpe15284_get_checksum (uint8_t bus, uint8_t addr, uint8_t *checksum)
 
bool xdpe15284_lock_reg (uint8_t bus, uint8_t addr)
 
bool xdpe15284_unlock_reg (uint8_t bus, uint8_t addr)
 
bool xdpe15284_get_remaining_wr (uint8_t bus, uint8_t addr, uint8_t *data)
 
bool xdpe15284_enable_write_protect (uint8_t bus, uint8_t addr)
 
bool xdpe15284_disable_write_protect (uint8_t bus, uint8_t addr)
 
void xdpe15284_set_write_protect_default_val (uint8_t val)
 
bool xdpe15284_fwupdate (uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size)
 
bool xdpe15284_get_status_byte (uint8_t bus, uint8_t addr, uint8_t *data)
 
bool xdpe15284_set_write_protect (uint8_t bus, uint8_t addr, uint8_t option)
 

Enumeration Type Documentation

◆ XDPE15284_STATUS_BIT

Enumerator
XDPE15284_NONE_OF_ABOVE 
XDPE15284_COMMUNICATION_MEMORY_LOGIC_BIT 
XDPE15284_TEMPERATURE_FAULT_BIT 
XDPE15284_UNDER_VOLTAGE_FAULT_BIT 
XDPE15284_OVER_CURRENT_FAULT_BIT 
XDPE15284_OVER_VOLTAGE_FAULT_BIT 
XDPE15284_OUTPUT_OFF_BIT 
XDPE15284_BUSY_BIT 

◆ XDPE15284_WRITE_PROTECT_OPTIONAL

Enumerator
XDPE15284_ENABLE_WRITE_PROTECT 
XDPE15284_DISABLE_WRITE_PROTECT 

◆ XDPE15284_WRITE_PROTECT_REG_VAL

Enumerator
XDPE15284_DISABLE_WRITE_PROTECT_VAL 
XDPE15284_DISABLE_ALL_WRITE_EXCEPT_FIVE_COMMANDS_VAL 
XDPE15284_DISABLE_ALL_WRITE_EXCEPT_THREE_COMMANDS_VAL 
XDPE15284_DISABLE_ALL_WRITE_EXCEPT_WRITE_PROTECT_VAL 

Function Documentation

◆ xdpe15284_disable_write_protect()

bool xdpe15284_disable_write_protect ( uint8_t  bus,
uint8_t  addr 
)

◆ xdpe15284_enable_write_protect()

bool xdpe15284_enable_write_protect ( uint8_t  bus,
uint8_t  addr 
)

◆ xdpe15284_fwupdate()

bool xdpe15284_fwupdate ( uint8_t  bus,
uint8_t  addr,
uint8_t *  img_buff,
uint32_t  img_size 
)
Here is the call graph for this function:

◆ xdpe15284_get_checksum()

bool xdpe15284_get_checksum ( uint8_t  bus,
uint8_t  addr,
uint8_t *  checksum 
)
Here is the call graph for this function:

◆ xdpe15284_get_remaining_wr()

bool xdpe15284_get_remaining_wr ( uint8_t  bus,
uint8_t  addr,
uint8_t *  data 
)
Here is the call graph for this function:

◆ xdpe15284_get_status_byte()

bool xdpe15284_get_status_byte ( uint8_t  bus,
uint8_t  addr,
uint8_t *  data 
)
Here is the call graph for this function:

◆ xdpe15284_lock_reg()

bool xdpe15284_lock_reg ( uint8_t  bus,
uint8_t  addr 
)
Here is the call graph for this function:

◆ xdpe15284_set_write_protect()

bool xdpe15284_set_write_protect ( uint8_t  bus,
uint8_t  addr,
uint8_t  option 
)

◆ xdpe15284_set_write_protect_default_val()

void xdpe15284_set_write_protect_default_val ( uint8_t  val)

◆ xdpe15284_unlock_reg()

bool xdpe15284_unlock_reg ( uint8_t  bus,
uint8_t  addr 
)
Here is the call graph for this function: