Mistake on this page?
Report an issue in GitHub or email us
EMW3080B_UART.h
1 /*
2  * Copyright (c) STMicroelectronics 2021
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 
19 /* Includes ------------------------------------------------------------------*/
20 /* Private includes ----------------------------------------------------------*/
21 #include "mbed.h"
22 #include "mbed_debug.h"
23 #include "mbed_error.h"
24 #include "mx_wifi.h"
25 #include "core/mx_wifi_hci.h"
26 #include "core/mx_wifi_slip.h"
27 
28 
29 
30 class EMW3080B_UART : public BufferedSerial {
31 public:
32  EMW3080B_UART(bool debug,
33  PinName tx,
34  PinName rx,
35  PinName reset
36  );
37 
38 private:
39  DigitalOut _resetpin;
40  THREAD_DECLARE(MX_WIFI_UARTRecvThreadId);
41 
42 
43 public:
44  void process_txrx_poll(void);
45 
46  int8_t IO_Init(uint16_t mode);
47  int8_t IO_DeInit(void);
48  void IO_Delay(uint32_t delayms);
49  uint16_t IO_Send(uint8_t *data, uint16_t len);
50  uint16_t IO_Receive(uint8_t *buffer, uint16_t buff_size);
51 
52  uint8_t _debug_level;
53 };
Header for mx_wifi.c module.
Header for mx_wifi_slip.c module.
Header for mx_wifi_hci.c module.
Class providing buffered UART communication functionality using separate circular buffer for send and...
A digital output, used for setting the state of a pin.
Definition: DigitalOut.h:51
static void debug(const char *format,...) MBED_PRINTF(1
Output a debug message.
Definition: mbed_debug.h:44
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.