usbcsink3 2.1.0.0
|
This file contains API for USB-C Sink 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | usbcsink3_s |
USB-C Sink 3 Click context object. More... | |
struct | usbcsink3_cfg_t |
USB-C Sink 3 Click configuration object. More... | |
Typedefs | |
typedef struct usbcsink3_s | usbcsink3_t |
USB-C Sink 3 Click context object. | |
Enumerations | |
enum | usbcsink3_return_value_t { USBCSINK3_OK = 0 , USBCSINK3_ERROR = -1 } |
USB-C Sink 3 Click return value data. More... | |
enum | usbcsink3_vtg_sel_t { USBCSINK3_VTG_SEL_5V = 0 , USBCSINK3_VTG_SEL_9V , USBCSINK3_VTG_SEL_15V , USBCSINK3_VTG_SEL_20V , USBCSINK3_VTG_SEL_4_3V , USBCSINK3_VTG_SEL_8_6V , USBCSINK3_VTG_SEL_12_9V , USBCSINK3_VTG_SEL_17_2V } |
USB-C Sink 3 Click voltage selection value data. More... | |
enum | usbcsink3_pwr_sel_t { USBCSINK3_PWR_SEL_12W = 0 , USBCSINK3_PWR_SEL_15W , USBCSINK3_PWR_SEL_18W , USBCSINK3_PWR_SEL_20W , USBCSINK3_PWR_SEL_27W , USBCSINK3_PWR_SEL_36W , USBCSINK3_PWR_SEL_45W , USBCSINK3_PWR_SEL_60W , USBCSINK3_PWR_SEL_90W , USBCSINK3_PWR_SEL_100W } |
USB-C Sink 3 Click power selection value data. More... | |
Functions | |
void | usbcsink3_cfg_setup (usbcsink3_cfg_t *cfg) |
USB-C Sink 3 configuration object setup function. | |
err_t | usbcsink3_init (usbcsink3_t *ctx, usbcsink3_cfg_t *cfg) |
USB-C Sink 3 initialization function. | |
err_t | usbcsink3_default_cfg (usbcsink3_t *ctx) |
USB-C Sink 3 default configuration function. | |
err_t | usbcsink3_i2c_write (usbcsink3_t *ctx, uint8_t reg, uint8_t data_in) |
USB-C Sink 3 I2C writing function. | |
err_t | usbcsink3_i2c_read (usbcsink3_t *ctx, uint8_t reg, uint8_t *data_out) |
USB-C Sink 3 I2C reading function. | |
err_t | usbcsink3_spi_write (usbcsink3_t *ctx, uint8_t reg, uint8_t data_in) |
USB-C Sink 3 SPI writing function. | |
err_t | usbcsink3_read_raw_adc (usbcsink3_t *ctx, uint16_t *raw_adc) |
USB-C Sink 3 read raw ADC value function. | |
err_t | usbcsink3_read_voltage (usbcsink3_t *ctx, float *voltage) |
USB-C Sink 3 read voltage level function. | |
err_t | usbcsink3_set_vref (usbcsink3_t *ctx, float vref) |
USB-C Sink 3 set vref function. | |
err_t | usbcsink3_get_vbus (usbcsink3_t *ctx, float *vbus) |
USB-C Sink 3 get VBUS function. | |
err_t | usbcsink3_set_wiper (usbcsink3_t *ctx, uint8_t wiper_pos) |
USB-C Sink 3 set the wiper position function. | |
err_t | usbcsink3_set_resistence (usbcsink3_t *ctx, float resistence) |
USB-C Sink 3 set the resistance function. | |
err_t | usbcsink3_set_voltage (usbcsink3_t *ctx, usbcsink3_vtg_sel_t voltage) |
USB-C Sink 3 set the voltage function. | |
err_t | usbcsink3_set_power (usbcsink3_t *ctx, usbcsink3_pwr_sel_t power) |
USB-C Sink 3 set the power function. | |
This file contains API for USB-C Sink 3 Click Driver.
typedef struct usbcsink3_s usbcsink3_t |
USB-C Sink 3 Click context object.
Context object definition of USB-C Sink 3 Click driver.
enum usbcsink3_pwr_sel_t |
USB-C Sink 3 Click power selection value data.
Predefined enum values for driver power selection values.
enum usbcsink3_vtg_sel_t |