Mistake on this page?
Report an issue in GitHub or email us
NRFCordioHCITransportDriver.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_TRANSPORT_DRIVER_H_
18 #define NRF_CORDIO_HCI_TRANSPORT_DRIVER_H_
19 
20 #include "ble/driver/CordioHCITransportDriver.h"
21 
22 namespace ble {
23 
24 
25 /**
26  * Nordic port of CordioHCITransportDriver
27  */
29 public:
30  /**
31  * Driver destructor.
32  */
34 
35  /**
36  * Inialization of the transport.
37  */
38  virtual void initialize();
39 
40  /**
41  * termination of the transport.
42  */
43  virtual void terminate();
44 
45  /**
46  * Write data in the transport channel.
47  *
48  * @param type The type of packet to transmit. It might be an HCI command
49  * packet, ACL packet or EVT packet. Depending on the type of transport
50  * it can prefix the packet itself.
51  * @param len Number of bytes to transmit.
52  * @param pData Pointer to the data to transmit. This is an WSF buffer
53  * and if CORDIO_ZERO_COPY_HCI is enabled we receive ownership.
54  *
55  * @return The number of bytes which have been transmited.
56  */
57  virtual uint16_t write(uint8_t type, uint16_t len, uint8_t *pData);
58 };
59 
60 } // namespace ble
61 
62 #endif /* NRF_CORDIO_HCI_TRANSPORT_DRIVER_H_ */
Base class of the HCI transport driver.
Nordic port of CordioHCITransportDriver.
virtual ~NRFCordioHCITransportDriver()
Driver destructor.
virtual void terminate()
termination of the transport.
virtual uint16_t write(uint8_t type, uint16_t len, uint8_t *pData)
Write data in the transport channel.
virtual void initialize()
Inialization of the transport.
Entry namespace for all BLE API definitions.
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.