Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tcpc_driver_api Struct Reference

#include <usbc_tcpc.h>

Data Fields

int(* init )(const struct device *dev)
 
int(* get_cc )(const struct device *dev, enum tc_cc_voltage_state *cc1, enum tc_cc_voltage_state *cc2)
 
int(* select_rp_value )(const struct device *dev, enum tc_rp_value rp)
 
int(* get_rp_value )(const struct device *dev, enum tc_rp_value *rp)
 
int(* set_cc )(const struct device *dev, enum tc_cc_pull pull)
 
void(* set_vconn_discharge_cb )(const struct device *dev, tcpc_vconn_discharge_cb_t cb)
 
void(* set_vconn_cb )(const struct device *dev, tcpc_vconn_control_cb_t vconn_cb)
 
int(* vconn_discharge )(const struct device *dev, bool enable)
 
int(* set_vconn )(const struct device *dev, bool enable)
 
int(* set_roles )(const struct device *dev, enum tc_power_role power_role, enum tc_data_role data_role)
 
int(* get_rx_pending_msg )(const struct device *dev, struct pd_msg *msg)
 
int(* set_rx_enable )(const struct device *dev, bool enable)
 
int(* set_cc_polarity )(const struct device *dev, enum tc_cc_polarity polarity)
 
int(* transmit_data )(const struct device *dev, struct pd_msg *msg)
 
int(* dump_std_reg )(const struct device *dev)
 
void(* alert_handler_cb )(const struct device *dev, void *data, enum tcpc_alert alert)
 
int(* get_status_register )(const struct device *dev, enum tcpc_status_reg reg, int32_t *status)
 
int(* clear_status_register )(const struct device *dev, enum tcpc_status_reg reg, uint32_t mask)
 
int(* mask_status_register )(const struct device *dev, enum tcpc_status_reg reg, uint32_t mask)
 
int(* set_debug_accessory )(const struct device *dev, bool enable)
 
int(* set_debug_detach )(const struct device *dev)
 
int(* set_drp_toggle )(const struct device *dev, bool enable)
 
int(* get_snk_ctrl )(const struct device *dev)
 
int(* set_snk_ctrl )(const struct device *dev, bool enable)
 
int(* get_src_ctrl )(const struct device *dev)
 
int(* set_src_ctrl )(const struct device *dev, bool enable)
 
int(* get_chip_info )(const struct device *dev, struct tcpc_chip_info *chip_info)
 
int(* set_low_power_mode )(const struct device *dev, bool enable)
 
int(* sop_prime_enable )(const struct device *dev, bool enable)
 
int(* set_bist_test_mode )(const struct device *dev, bool enable)
 
int(* set_alert_handler_cb )(const struct device *dev, tcpc_alert_handler_cb_t handler, void *data)
 

Field Documentation

◆ alert_handler_cb

void(* tcpc_driver_api::alert_handler_cb) (const struct device *dev, void *data, enum tcpc_alert alert)

◆ clear_status_register

int(* tcpc_driver_api::clear_status_register) (const struct device *dev, enum tcpc_status_reg reg, uint32_t mask)

◆ dump_std_reg

int(* tcpc_driver_api::dump_std_reg) (const struct device *dev)

◆ get_cc

int(* tcpc_driver_api::get_cc) (const struct device *dev, enum tc_cc_voltage_state *cc1, enum tc_cc_voltage_state *cc2)

◆ get_chip_info

int(* tcpc_driver_api::get_chip_info) (const struct device *dev, struct tcpc_chip_info *chip_info)

◆ get_rp_value

int(* tcpc_driver_api::get_rp_value) (const struct device *dev, enum tc_rp_value *rp)

◆ get_rx_pending_msg

int(* tcpc_driver_api::get_rx_pending_msg) (const struct device *dev, struct pd_msg *msg)

◆ get_snk_ctrl

int(* tcpc_driver_api::get_snk_ctrl) (const struct device *dev)

◆ get_src_ctrl

int(* tcpc_driver_api::get_src_ctrl) (const struct device *dev)

◆ get_status_register

int(* tcpc_driver_api::get_status_register) (const struct device *dev, enum tcpc_status_reg reg, int32_t *status)

◆ init

int(* tcpc_driver_api::init) (const struct device *dev)

◆ mask_status_register

int(* tcpc_driver_api::mask_status_register) (const struct device *dev, enum tcpc_status_reg reg, uint32_t mask)

◆ select_rp_value

int(* tcpc_driver_api::select_rp_value) (const struct device *dev, enum tc_rp_value rp)

◆ set_alert_handler_cb

int(* tcpc_driver_api::set_alert_handler_cb) (const struct device *dev, tcpc_alert_handler_cb_t handler, void *data)

◆ set_bist_test_mode

int(* tcpc_driver_api::set_bist_test_mode) (const struct device *dev, bool enable)

◆ set_cc

int(* tcpc_driver_api::set_cc) (const struct device *dev, enum tc_cc_pull pull)

◆ set_cc_polarity

int(* tcpc_driver_api::set_cc_polarity) (const struct device *dev, enum tc_cc_polarity polarity)

◆ set_debug_accessory

int(* tcpc_driver_api::set_debug_accessory) (const struct device *dev, bool enable)

◆ set_debug_detach

int(* tcpc_driver_api::set_debug_detach) (const struct device *dev)

◆ set_drp_toggle

int(* tcpc_driver_api::set_drp_toggle) (const struct device *dev, bool enable)

◆ set_low_power_mode

int(* tcpc_driver_api::set_low_power_mode) (const struct device *dev, bool enable)

◆ set_roles

int(* tcpc_driver_api::set_roles) (const struct device *dev, enum tc_power_role power_role, enum tc_data_role data_role)

◆ set_rx_enable

int(* tcpc_driver_api::set_rx_enable) (const struct device *dev, bool enable)

◆ set_snk_ctrl

int(* tcpc_driver_api::set_snk_ctrl) (const struct device *dev, bool enable)

◆ set_src_ctrl

int(* tcpc_driver_api::set_src_ctrl) (const struct device *dev, bool enable)

◆ set_vconn

int(* tcpc_driver_api::set_vconn) (const struct device *dev, bool enable)

◆ set_vconn_cb

void(* tcpc_driver_api::set_vconn_cb) (const struct device *dev, tcpc_vconn_control_cb_t vconn_cb)

◆ set_vconn_discharge_cb

void(* tcpc_driver_api::set_vconn_discharge_cb) (const struct device *dev, tcpc_vconn_discharge_cb_t cb)

◆ sop_prime_enable

int(* tcpc_driver_api::sop_prime_enable) (const struct device *dev, bool enable)

◆ transmit_data

int(* tcpc_driver_api::transmit_data) (const struct device *dev, struct pd_msg *msg)

◆ vconn_discharge

int(* tcpc_driver_api::vconn_discharge) (const struct device *dev, bool enable)

The documentation for this struct was generated from the following file: