mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
wireless/bluetooth and drivers/wireless/bluetooth: Simply the driver registration/initialization interface.
This commit is contained in:
@@ -72,51 +72,6 @@ struct bt_driver_s
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bt_driver_register
|
||||
*
|
||||
* Description:
|
||||
* Register the Bluetooth low-level driver with the Bluetooth stack.
|
||||
* This is called from the low-level driver and is part of the driver
|
||||
* interface prototyped in include/nuttx/wireless/bt_driver.h
|
||||
*
|
||||
* This function associates the Bluetooth driver with the Bluetooth stack.
|
||||
* It must be called *BEFORE* bt_netdev_register().
|
||||
*
|
||||
* REVISIT: This probably should be re-partitioned. It would may more
|
||||
* sense for the Bluetooth driver to just call bt_netdev_register() and
|
||||
* have that function call bt_driver_register().
|
||||
*
|
||||
* Input Parameters:
|
||||
* btdev - An instance of the low-level drivers interface structure.
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero is returned on success; a negated errno value is returned on any
|
||||
* failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int bt_driver_register(FAR const struct bt_driver_s *btdev);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bt_driver_unregister
|
||||
*
|
||||
* Description:
|
||||
* Unregister a Bluetooth low-level driver previously registered with
|
||||
* bt_driver_register. This may be called from the low-level driver and
|
||||
* is part of the driver interface prototyped in
|
||||
* include/nuttx/wireless/bt_driver.h
|
||||
*
|
||||
* Input Parameters:
|
||||
* btdev - An instance of the low-level drivers interface structure.
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void bt_driver_unregister(FAR const struct bt_driver_s *btdev);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bt_netdev_register
|
||||
*
|
||||
@@ -124,14 +79,6 @@ void bt_driver_unregister(FAR const struct bt_driver_s *btdev);
|
||||
* Register a network driver to access the Bluetooth layer using a 6LoWPAN
|
||||
* IPv6 or AF_BLUETOOTH socket.
|
||||
*
|
||||
* This function should be called by the Bluetooth driver *AFTER* it has
|
||||
* called bt_driver_register(). This function assocated the Bluetooth
|
||||
* driver with the highe level network stack.
|
||||
*
|
||||
* REVISIT: This probably should be re-partitioned. It would may more
|
||||
* sense for the Bluetooth driver to just call bt_driver_register() and
|
||||
* let this function performed the Bluetooth stack configuration.
|
||||
*
|
||||
* Input Parameters:
|
||||
* btdev - An instance of the low-level drivers interface structure.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user