mtb-pmbus
SMBALERT Functions

General Description

Functions

void mtb_pmbus_smbalert_config_mode (mtb_pmbus_stc_t *inst, mtb_pmbus_smbalert_mode_t mode)
 Sets the mode for SMBALERT pin. More...
 
void mtb_pmbus_smbalert_set_signal (mtb_pmbus_stc_t *inst)
 Set low level for SMBALERT pin. More...
 
void mtb_pmbus_smbalert_clear_signal (mtb_pmbus_stc_t *inst)
 Set hign level for SMBALERT pin. More...
 

Function Documentation

◆ mtb_pmbus_smbalert_config_mode()

void mtb_pmbus_smbalert_config_mode ( mtb_pmbus_stc_t inst,
mtb_pmbus_smbalert_mode_t  mode 
)

Sets the mode for SMBALERT pin.

Note
This function is only available when MTB_PMBUS_SUPPORT_SMBALERT is enabled at compile time options.
Parameters
instThe pointer to the PMBus instance structure
modeThe selected mode, mtb_pmbus_smbalert_mode_t

◆ mtb_pmbus_smbalert_set_signal()

void mtb_pmbus_smbalert_set_signal ( mtb_pmbus_stc_t inst)

Set low level for SMBALERT pin.

Once the SMBALERT signal sets to 0, the Middleware starts to response on Alert Response Address.

This function does nothing if mtb_pmbus_stc_config_t::enable_smbalert is set to NULL.

Note
This function is only available when MTB_PMBUS_SUPPORT_SMBALERT is enabled at compile time options.
Parameters
instThe pointer to the PMBus instance structure

◆ mtb_pmbus_smbalert_clear_signal()

void mtb_pmbus_smbalert_clear_signal ( mtb_pmbus_stc_t inst)

Set hign level for SMBALERT pin.

This function does nothing if mtb_pmbus_stc_config_t::enable_smbalert is set to NULL.

The middleware stops response on Alert Response Address once this function is called. If the SMBALERT mode is MTB_PMBUS_SMBALERT_MODE_AUTO, the middleware automatic clears the SMBALERT signal, otherwise clear the signal manually in mtb_pmbus_handle_events_t callback when MTB_PMBUS_ALERT_RESPONSE_ADDR_EVENT is triggered.

Note
This function is only available when MTB_PMBUS_SUPPORT_SMBALERT is enabled at compile time options.
Parameters
instThe pointer to the PMBus instance structure