Functions | |
| mtb_pmbus_status_t | mtb_pmbus_get_read_zone (mtb_pmbus_stc_t *inst, uint32_t *zone, uint32_t page) |
| Returns assigned Read Zone to this target device. More... | |
| mtb_pmbus_status_t | mtb_pmbus_get_write_zone (mtb_pmbus_stc_t *inst, uint32_t *zone, uint32_t page) |
| Returns assigned Write Zone to this target device. More... | |
| mtb_pmbus_status_t | mtb_pmbus_get_active_zones (mtb_pmbus_stc_t *inst, uint32_t *zone_read, uint32_t *zone_write) |
| Returns the active zones. More... | |
| mtb_pmbus_status_t | mtb_pmbus_set_default_zones (mtb_pmbus_stc_t *inst, uint32_t zone_read, uint32_t zone_write, uint32_t page) |
| Sets the default zones for the device. More... | |
| mtb_pmbus_status_t mtb_pmbus_get_read_zone | ( | mtb_pmbus_stc_t * | inst, |
| uint32_t * | zone, | ||
| uint32_t | page | ||
| ) |
Returns assigned Read Zone to this target device.
If the instance does not support pages, then the page parameter is ignored and the function returns the global zones assigned to this instance.
| inst | The pointer to the PMBus instance structure |
| zone | The pointer to variable for storing the Read Zone |
| page | The page number for zone assignment |
| mtb_pmbus_status_t mtb_pmbus_get_write_zone | ( | mtb_pmbus_stc_t * | inst, |
| uint32_t * | zone, | ||
| uint32_t | page | ||
| ) |
Returns assigned Write Zone to this target device.
If the instance does not support pages, then the page parameter is ignored and the function returns the global zones assigned to this instance.
| inst | The pointer to the PMBus instance structure |
| zone | The pointer to variable for storing the Write Zone |
| page | The page number for zone assignment |
| mtb_pmbus_status_t mtb_pmbus_get_active_zones | ( | mtb_pmbus_stc_t * | inst, |
| uint32_t * | zone_read, | ||
| uint32_t * | zone_write | ||
| ) |
Returns the active zones.
| inst | The pointer to the PMBus instance structure |
| zone_read | The pointer to variable for storing the active Read Zone |
| zone_write | The pointer to variable for storing the active Write Zone |
| mtb_pmbus_status_t mtb_pmbus_set_default_zones | ( | mtb_pmbus_stc_t * | inst, |
| uint32_t | zone_read, | ||
| uint32_t | zone_write, | ||
| uint32_t | page | ||
| ) |
Sets the default zones for the device.
Use this function to change the default zones during the initialization of the device: after mtb_pmbus_init() and before mtb_pmbus_enable().
By default the 0xFE is assigned to Read and Write Zones during initialization stage.
If instance does not support pages, then the page parameter value is ignored and zones are assigned globally for instance.
| inst | The pointer to the PMBus instance structure |
| zone_read | The Read Zone to assign to this device |
| zone_write | The Write Zone to assign to this device |
| page | The page number for zone assignment |