mtb-pmbus 1.2.0.1772
 
Loading...
Searching...
No Matches
Data Structures

General Description

Data Structures

struct  mtb_pmbus_ctrl_cfg_t
 Controller configuration structure. More...
 
struct  mtb_pmbus_ctrl_stc_transfer_cfg_t
 Transfer configuration structure. More...
 
struct  mtb_pmbus_ctrl_stc_t
 Controller instance structure. More...
 

Typedefs

typedef void(* mtb_pmbus_ctrl_handle_events_t) (mtb_pmbus_ctrl_events_t event)
 Provides the typedef for the callback function called in ISR to notify the user about occurrences of mtb_pmbus_ctrl_events_t.
 
typedef void(* mtb_pmbus_ctrl_hw_resources_ctrl_t) (mtb_pmbus_ctrl_hw_resources_ctrl_action_t action)
 Provides the typedef for the callback function called in mtb_pmbus_ctrl_enable and mtb_pmbus_ctrl_disable to perform enabling/disabling HW resources.
 
typedef void(* mtb_pmbus_ctrl_hw_isr_ctrl_t) (void)
 Provides the typedef for the callback function called inside the middleware to enable/disable PMBus controller related interrupts.
 
typedef void(* mtb_pmbus_ctrl_handle_host_notify_t) (mtb_pmbus_ctrl_host_notify_events_t event)
 Provides the typedef for the callback function called in ISR to notify the user about occurrences of mtb_pmbus_ctrl_host_notify_events_t.
 

Data Structure Documentation

◆ mtb_pmbus_ctrl_cfg_t

struct mtb_pmbus_ctrl_cfg_t
Data Fields
mtb_pmbus_ctrl_handle_events_t callback_events The pointer to events callback.
mtb_pmbus_ctrl_handle_host_notify_t callback_hnp The pointer to Host Notify events callback.
mtb_pmbus_ctrl_stc_config_hal_t * hal_cfg The pointer to HAL config structure.
mtb_pmbus_ctrl_hw_resources_ctrl_t callback_hw The pointer to the user callback for initializing/enabling/disabling the I2C Hardware.
mtb_pmbus_ctrl_hw_isr_ctrl_t callback_isr_enable The pointer to the user callback for enabling I2C HW interrupts.
mtb_pmbus_ctrl_hw_isr_ctrl_t callback_isr_disable The pointer to the user callback for disabling I2C HW interrupts.

◆ mtb_pmbus_ctrl_stc_transfer_cfg_t

struct mtb_pmbus_ctrl_stc_transfer_cfg_t
Data Fields
uint8_t * data The pointer to the data buffer.
uint8_t addr The target address.
uint16_t wr_size The size of the write part of the transfer.
uint16_t rd_size The size of the read part of the transfer.
bool execute_stop True - execute the stop condition at the end of transfer, False - Otherwise.

◆ mtb_pmbus_ctrl_stc_t

struct mtb_pmbus_ctrl_stc_t