usbcsource 2.0.0.0
|
This file contains API for USB-C Source 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 | usbcsource_t |
USB-C Source Click context object. More... | |
struct | usbcsource_cfg_t |
USB-C Source Click configuration object. More... | |
struct | alert_status_t |
USB-C Source Click alert status object. More... | |
struct | port_status_t |
USB-C Source Click port status object. More... | |
struct | monitor_status_t |
USB-C Source Click monitor status object. More... | |
struct | connection_status_t |
USB-C Source Click connection status object. More... | |
struct | fault_status_t |
USB-C Source Click fault status object. More... | |
struct | pdo_config_t |
USB-C Source Click PDO config object. More... | |
Enumerations | |
enum | usbcsource_return_value_t { USBCSOURCE_OK = 0 , USBCSOURCE_ERROR = -1 } |
USB-C Source Click return value data. More... | |
Functions | |
void | usbcsource_cfg_setup (usbcsource_cfg_t *cfg) |
USB-C Source configuration object setup function. | |
err_t | usbcsource_init (usbcsource_t *ctx, usbcsource_cfg_t *cfg) |
USB-C Source initialization function. | |
err_t | usbcsource_generic_write (usbcsource_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
USB-C Source I2C writing function. | |
err_t | usbcsource_generic_read (usbcsource_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
USB-C Source I2C reading function. | |
void | usbcsource_write_byte (usbcsource_t *ctx, uint8_t reg, uint8_t tx_data) |
Generic write function. | |
uint8_t | usbcsource_read_byte (usbcsource_t *ctx, uint8_t reg) |
Generic read function. | |
void | usbcsource_hw_reset (usbcsource_t *ctx) |
HW reset function. | |
uint8_t | usbcsource_int_pin_state (usbcsource_t *ctx) |
Get INT pin state function. | |
void | usbcsource_get_alert_status (usbcsource_t *ctx, alert_status_t *alert_status_data) |
Get alert status function. | |
void | usbcsource_set_alert_status (usbcsource_t *ctx, alert_status_t alert_status_data) |
Set alert status function. | |
uint8_t | usbcsource_check_attach_trans (usbcsource_t *ctx) |
Check attach trans function. | |
void | usbcsource_get_port_status (usbcsource_t *ctx, port_status_t *port_status_data) |
Get port status function. | |
void | usbcsource_get_monitoring_status (usbcsource_t *ctx, monitor_status_t *monitor_status_data) |
Get monitoring status function. | |
void | usbcsource_get_connection_status (usbcsource_t *ctx, connection_status_t *conn_data) |
Get connection status function. | |
void | usbcsource_get_fault_status (usbcsource_t *ctx, fault_status_t *fault_data) |
Get fault status function. | |
void | usbcsource_sw_reset (usbcsource_t *ctx) |
SW reset function. | |
uint8_t | usbcsource_set_pdo_config (usbcsource_t *ctx, pdo_config_t pdo_cfg_data) |
Set PDO configuration function. | |
uint8_t | usbcsource_get_pdo_config (usbcsource_t *ctx, uint8_t pdo_numb, pdo_config_t *pdo_cfg_data) |
Get PDO configuration function. | |
void | usbcsource_default_config (usbcsource_t *ctx) |
Default configuration function. | |
This file contains API for USB-C Source Click Driver.