Mistake on this page?
Report an issue in GitHub or email us
chci_tr.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Controller HCI transport interface file.
6  *
7  * Copyright (c) 2013-2019 ARM Ltd. All Rights Reserved.
8  *
9  * Copyright (c) 2019-2020 Packetcraft, Inc.
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  */
23 /*************************************************************************************************/
24 
25 #ifndef CHCI_TR_H
26 #define CHCI_TR_H
27 
28 #include "wsf_types.h"
29 #include "wsf_os.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /**************************************************************************************************
36  Macros
37 **************************************************************************************************/
38 
39 #ifndef UART_BAUD
40 /*! \brief Default UART baud rate. */
41 #define UART_BAUD 1000000
42 #endif
43 
44 #ifndef UART_HWFC
45 /*! \brief Default Hardware Flow Control. */
46 #define UART_HWFC 1
47 #endif
48 
49 /**************************************************************************************************
50  Function Declarations
51 **************************************************************************************************/
52 
53 /*************************************************************************************************/
54 /*!
55  * \brief Signal the completion of a message receive.
56  *
57  * \param prot Protocol.
58  * \param type Message type.
59  * \param pBuf Message.
60  */
61 /*************************************************************************************************/
62 void chciTrRecv(uint8_t prot, uint8_t type, uint8_t *pBuf);
63 
64 /*************************************************************************************************/
65 /*!
66  * \brief Signal the completion of a message transmission.
67  */
68 /*************************************************************************************************/
69 void chciTrSendComplete(void);
70 
71 /*************************************************************************************************/
72 /*!
73  * \brief Service the transport device.
74  *
75  * \return TRUE if work pending, FALSE if no work is pending.
76  */
77 /*************************************************************************************************/
78 bool_t ChciTrService(void);
79 
80 #ifdef __cplusplus
81 };
82 #endif
83 
84 #endif /* CHCI_TR_H */
void chciTrRecv(uint8_t prot, uint8_t type, uint8_t *pBuf)
Signal the completion of a message receive.
void chciTrSendComplete(void)
Signal the completion of a message transmission.
bool_t ChciTrService(void)
Service the transport device.
Platform-independent data types.
Software foundation OS API.
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.