usbcpower 2.1.0.0
|
This file contains API for USB-C Power Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | usbcpower_t |
USB-C Power Click context object. More... | |
struct | usbcpower_cfg_t |
USB-C Power Click configuration object. More... | |
struct | usbcpower_pbms_cfg_t |
USB-C Power Click PBMs configuration object. More... | |
struct | usbcpower_status_t |
USB-C Power Click status information object. More... | |
struct | usbcpower_pwr_path_status_t |
USB-C Power Click power path status object. More... | |
struct | usbcpower_boot_status_t |
USB-C Power Click boot path status object. More... | |
struct | usbcpower_rx_caps_t |
USB-C Power Click rx source/sink caps object. More... | |
struct | usbcpower_pwr_status_t |
USB-C Power Click power status object. More... | |
struct | usbcpower_pd_status_t |
USB-C Power Click PD status object. More... | |
Enumerations | |
enum | usbcpower_return_value_t { USBCPOWER_OK = 0 , USBCPOWER_ERROR = -1 } |
USB-C Power Click return value data. More... | |
Functions | |
void | usbcpower_cfg_setup (usbcpower_cfg_t *cfg) |
USB-C Power configuration object setup function. | |
err_t | usbcpower_init (usbcpower_t *ctx, usbcpower_cfg_t *cfg) |
USB-C Power initialization function. | |
err_t | usbcpower_default_cfg (usbcpower_t *ctx) |
USB-C Power default configuration function. | |
err_t | usbcpower_generic_write (usbcpower_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
USB-C Power I2C writing function. | |
err_t | usbcpower_generic_read (usbcpower_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
USB-C Power I2C reading function. | |
err_t | usbcpower_get_device_mode (usbcpower_t *ctx, uint8_t *device_mode) |
USB-C Power get device mode function. | |
err_t | usbcpower_get_device_capabilities (usbcpower_t *ctx, uint8_t *device_cap) |
USB-C Power get device capabilities function. | |
err_t | usbcpower_device_info (usbcpower_t *ctx, uint8_t *device_info) |
USB-C Power device info function. | |
err_t | usbcpower_set_patch_mode (usbcpower_t *ctx, uint32_t *response) |
USB-C Power set patch mode function. | |
err_t | usbcpower_start_patch_burst_mode (usbcpower_t *ctx, usbcpower_pbms_cfg_t pbms_cfg, uint32_t *response) |
USB-C Power starts the patch burst mode function. | |
err_t | usbcpower_complete_patch_burst_mode (usbcpower_t *ctx, uint32_t *response) |
USB-C Power complete the patch burst mode function. | |
err_t | usbcpower_exit_patch_burst_mode (usbcpower_t *ctx, uint32_t *response) |
USB-C Power exit the patch burst mode function. | |
err_t | usbcpower_get_selected_mode (usbcpower_t *ctx, uint8_t *sel_mode) |
USB-C Power gets selected mode function. | |
err_t | usbcpower_update_patch_bundle (usbcpower_t *ctx, usbcpower_pbms_cfg_t pbms_cfg) |
USB-C Power update patch bundle function. | |
err_t | usbcpower_get_status (usbcpower_t *ctx, usbcpower_status_t *status) |
USB-C Power gets status function. | |
err_t | usbcpower_get_pwr_path_status (usbcpower_t *ctx, usbcpower_pwr_path_status_t *pp_status) |
USB-C Power gets power path status function. | |
err_t | usbcpower_get_boot_status (usbcpower_t *ctx, usbcpower_boot_status_t *boot_status) |
USB-C Power gets boot status function. | |
err_t | usbcpower_get_rx_caps (usbcpower_t *ctx, usbcpower_rx_caps_t *rx_caps) |
USB-C Power gets RX caps function. | |
err_t | usbcpower_get_pwr_status (usbcpower_t *ctx, usbcpower_pwr_status_t *pwr_status) |
USB-C Power gets PWR status function. | |
err_t | usbcpower_get_pd_status (usbcpower_t *ctx, usbcpower_pd_status_t *pd_status) |
USB-C Power gets PD status function. | |
uint8_t | usbcpower_get_int_pin (usbcpower_t *ctx) |
USB-C Power gets interrupt function. | |
This file contains API for USB-C Power Click Driver.