Functions | |
| bool | mtb_pmbus_ctrl_bus_is_busy (mtb_pmbus_ctrl_stc_t *inst) |
| Check if the PMBus bus is busy. | |
| mtb_pmbus_ctrl_status_t | mtb_pmbus_ctrl_get_status (mtb_pmbus_ctrl_stc_t *inst) |
| Get the status of the PMBus controller. | |
| mtb_pmbus_ctrl_status_t | mtb_pmbus_ctrl_wait_cmpl (mtb_pmbus_ctrl_stc_t *inst, uint32_t timeout) |
| Wait for the transfer completion with a timeout. | |
| bool mtb_pmbus_ctrl_bus_is_busy | ( | mtb_pmbus_ctrl_stc_t * | inst | ) |
Check if the PMBus bus is busy.
This function checks the hardware status of the PMBus bus to determine if it's currently occupied by another controller or if there's ongoing communication.
| inst | The pointer to the PMBus controller instance structure. Must not be NULL. |
| mtb_pmbus_ctrl_status_t mtb_pmbus_ctrl_get_status | ( | mtb_pmbus_ctrl_stc_t * | inst | ) |
Get the status of the PMBus controller.
This function checks the internal state and error flags of the PMBus controller to determine its current operational status. It provides information about whether the controller is ready for new operations, currently busy with a transfer, or has encountered an error.
| inst | The pointer to the PMBus controller instance structure. |
| mtb_pmbus_ctrl_status_t mtb_pmbus_ctrl_wait_cmpl | ( | mtb_pmbus_ctrl_stc_t * | inst, |
| uint32_t | timeout ) |
Wait for the transfer completion with a timeout.
This function polls the PMBus controller status until the transfer is complete or the specified timeout expires. It checks the controller status every microsecond and returns when the controller becomes ready or when a timeout occurs.
| inst | The pointer to the PMBus controller instance structure. Must not be NULL. |
| timeout | The timeout value in microseconds. The function will wait up to this many microseconds for the transfer to complete. A value of 0 will perform a single status check without waiting. |