Mistake on this page?
Report an issue in GitHub or email us
NRFCordioHCIDriver.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2017-2018 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef NRF_CORDIO_HCI_DRIVER_H_
18 #define NRF_CORDIO_HCI_DRIVER_H_
19 
20 #include "ble/driver/CordioHCIDriver.h"
21 
22 namespace ble {
23 
24 /**
25  * Nordic port of CordioHCIDriver
26  */
28 public:
29  /**
30  * Construct a new instance of an HCI driver.
31  * @param transport_driver The driver used to communicate with the chip.
32  */
34 
35  /**
36  * Driver destructor
37  */
38  virtual ~NRFCordioHCIDriver();
39 
40  /**
41  * Return the set of memory pool which will be used by the Cordio stack
42  */
44 
45  /**
46  * Start the reset sequence of the BLE module.
47  */
48  virtual void start_reset_sequence();
49 
50  /**
51  * Handle HCI messages received during the reset sequence.
52  *
53  * @param msg The HCI message received.
54  * @note The driver should signal to the stack that the initialization
55  * sequence is done by calling the function: signal_reset_sequence_done.
56  */
57  //virtual void handle_reset_sequence(uint8_t *msg);
58 
59  /**
60  * @copydoc CordioHCIDriver::get_random_static_address
61  */
62  virtual bool get_random_static_address(ble::address_t& address);
63 
64 private:
65  /**
66  * Initialize the chip.
67  * The transport is up at that time.
68  */
69  virtual void do_initialize();
70 
71  /**
72  * Terminate the driver
73  */
74  virtual void do_terminate();
75 
76  // Cordio parameters
77  static const BbRtCfg_t _bb_cfg; /// << Baseband runtime configuration
78  static const LlRtCfg_t _ll_cfg; /// << Link layer runtime configuration;
79 
80  bool _is_init;
81  uint8_t* _stack_buffer;
82 };
83 
84 } // namespace ble
85 
86 #endif /* NRF_CORDIO_HCI_DRIVER_H_ */
Contain description of the memory pool used by the Cordio stack.
virtual ~NRFCordioHCIDriver()
Driver destructor.
Nordic port of CordioHCIDriver.
BB runtime configuration parameters.
Definition: bb_api.h:95
Base class of the HCI transport driver.
virtual bool get_random_static_address(ble::address_t &address)
Handle HCI messages received during the reset sequence.
LL runtime configuration parameters.
Definition: ll_api.h:124
MAC address data type.
Base class of the HCI driver use by the BLE port of the Cordio stack.
virtual void start_reset_sequence()
Start the reset sequence of the BLE module.
virtual buf_pool_desc_t get_buffer_pool_description()
Return the set of memory pool which will be used by the Cordio stack.
Entry namespace for all BLE API definitions.
NRFCordioHCIDriver(CordioHCITransportDriver &transport_driver)
Construct a new instance of an HCI driver.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.