/* Following APIs register/unregister the extcon device. */ int extcon_dev_register(struct extcon_dev *edev); void extcon_dev_unregister(struct extcon_dev *edev); int devm_extcon_dev_register(struct device *dev, struct extcon_dev *edev); void devm_extcon_dev_unregister(struct device *dev, struct extcon_dev *edev);
/* Following APIs allocate/free the memory of the extcon device. */ struct extcon_dev *extcon_dev_allocate(constunsignedint *cable); void extcon_dev_free(struct extcon_dev *edev); struct extcon_dev *devm_extcon_dev_allocate(struct device *dev, constunsignedint *cable); void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
/* Synchronize the state and property value for each external connector. */ int extcon_sync(struct extcon_dev *edev, unsignedint id);
/* * Following APIs set the connected state of each external connector. * The 'id' argument indicates the defined external connector.
*/ int extcon_set_state(struct extcon_dev *edev, unsignedint id, bool state); int extcon_set_state_sync(struct extcon_dev *edev, unsignedint id, bool state);
/* * Following APIs set the property of each external connector. * The 'id' argument indicates the defined external connector * and the 'prop' indicates the extcon property. * * And extcon_set_property_capability() set the capability of the property * for each external connector. They are used to set the capability of the * property of each external connector based on the id and property.
*/ int extcon_set_property(struct extcon_dev *edev, unsignedint id, unsignedint prop, union extcon_property_value prop_val); int extcon_set_property_sync(struct extcon_dev *edev, unsignedint id, unsignedint prop, union extcon_property_value prop_val); int extcon_set_property_capability(struct extcon_dev *edev, unsignedint id, unsignedint prop);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.