|
void | usbcsink2_cfg_setup (usbcsink2_cfg_t *cfg) |
| USB-C Sink 2 configuration object setup function.
|
|
err_t | usbcsink2_init (usbcsink2_t *ctx, usbcsink2_cfg_t *cfg) |
| USB-C Sink 2 initialization function.
|
|
err_t | usbcsink2_default_cfg (usbcsink2_t *ctx) |
| USB-C Sink 2 default configuration function.
|
|
err_t | usbcsink2_generic_write (usbcsink2_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len) |
| USB-C Sink 2 data writing function.
|
|
err_t | usbcsink2_generic_read (usbcsink2_t *ctx, uint8_t cmd, uint8_t *data_out, uint8_t len) |
| USB-C Sink 2 data reading function.
|
|
err_t | usbcsink2_read_raw_adc (usbcsink2_t *ctx, uint16_t *raw_adc) |
| USB-C Sink 2 read raw ADC value function.
|
|
err_t | usbcsink2_read_voltage (usbcsink2_t *ctx, float *voltage) |
| USB-C Sink 2 read voltage level function.
|
|
err_t | usbcsink2_set_vref (usbcsink2_t *ctx, float vref) |
| USB-C Sink 2 set vref function.
|
|
err_t | usbcsink2_read_pdo (usbcsink2_t *ctx, uint8_t *pdo) |
| USB-C Sink 2 PDO data reading function.
|
|
err_t | usbcsink2_get_pdo_num (usbcsink2_t *ctx, uint8_t *pdo_num) |
| USB-C Sink 2 PDO number reading function.
|
|
err_t | usbcsink2_read_status (usbcsink2_t *ctx, uint8_t *status) |
| USB-C Sink 2 status reading function.
|
|
err_t | usbcsink2_wait_rdo_req_success (usbcsink2_t *ctx) |
| USB-C Sink 2 wait RDO request function.
|
|
err_t | usbcsink2_get_pdo_voltage (usbcsink2_t *ctx, float *voltage_mv) |
| USB-C Sink 2 get the voltage function.
|
|
err_t | usbcsink2_get_pdo_current (usbcsink2_t *ctx, float *current_ma) |
| USB-C Sink 2 get the current function.
|
|
err_t | usbcsink2_get_temperature (usbcsink2_t *ctx, uint8_t *temperature) |
| USB-C Sink 2 get the temperature function.
|
|
err_t | usbcsink2_write_rdo (usbcsink2_t *ctx, uint8_t *rdo) |
| USB-C Sink 2 write the RDO function.
|
|
err_t | usbcsink2_reset (usbcsink2_t *ctx) |
| USB-C Sink 2 hard reset the RDO function.
|
|
uint8_t | usbcsink2_get_interrupt (usbcsink2_t *ctx) |
| USB-C Sink 2 get interrupt function.
|
|
This file contains API for USB-C Sink 2 Click Driver.