mtb-pmbus 1.2.0.1772
 
Loading...
Searching...
No Matches
Interrupt Functions

General Description

Functions

void mtb_pmbus_ctrl_isr (mtb_pmbus_ctrl_stc_t *inst)
 PMBus controller interrupt service routine.
 
void mtb_pmbus_ctrl_timer_isr (mtb_pmbus_ctrl_stc_t *inst)
 PMBus controller timer interrupt service routine.
 
uint8_t mtb_pmbus_ctrl_hnp_get_trgt_addr (mtb_pmbus_ctrl_stc_t *inst)
 Return target address that sent Host Notify request.
 
uint16_t mtb_pmbus_ctrl_hnp_get_trgt_data (mtb_pmbus_ctrl_stc_t *inst)
 Return data that target sent during Host Notify.
 

Function Documentation

◆ mtb_pmbus_ctrl_isr()

void mtb_pmbus_ctrl_isr ( mtb_pmbus_ctrl_stc_t * inst)

PMBus controller interrupt service routine.

This function must be called from the I2C interrupt handler

Parameters
instThe pointer to the PMBus controller instance structure

◆ mtb_pmbus_ctrl_timer_isr()

void mtb_pmbus_ctrl_timer_isr ( mtb_pmbus_ctrl_stc_t * inst)

PMBus controller timer interrupt service routine.

This function must be called from the TCPWM interrupt handler

Note
This function is only available when MTB_PMBUS_ENABLE_TIMEOUT and MTB_PMBUS_HAL_USE_TCPWM are enabled at compile time options.
Parameters
instThe pointer to the PMBus controller instance structure

◆ mtb_pmbus_ctrl_hnp_get_trgt_addr()

uint8_t mtb_pmbus_ctrl_hnp_get_trgt_addr ( mtb_pmbus_ctrl_stc_t * inst)

Return target address that sent Host Notify request.

This function must be called in the mtb_pmbus_ctrl_handle_host_notify_t when a MTB_PMBUS_CTRL_HOST_NOTIFY_COMPLETE event occurs.

Note
This function is only available when MTB_PMBUS_CTRL_SUPPORT_HOST_NOTIFY is enabled at compile time options.
Parameters
instThe pointer to the PMBus controller instance structure
Returns
The 7-bit I2C address of the target device that sent the Host Notify request

◆ mtb_pmbus_ctrl_hnp_get_trgt_data()

uint16_t mtb_pmbus_ctrl_hnp_get_trgt_data ( mtb_pmbus_ctrl_stc_t * inst)

Return data that target sent during Host Notify.

This function must be called in the mtb_pmbus_ctrl_handle_host_notify_t when a MTB_PMBUS_CTRL_HOST_NOTIFY_COMPLETE event occurs.

Note
This function is only available when MTB_PMBUS_CTRL_SUPPORT_HOST_NOTIFY is enabled at compile time options.
Parameters
instThe pointer to the PMBus controller instance structure
Returns
The 16-bit data sent by the target device during Host Notify