Mbed OS Reference
Loading...
Searching...
No Matches
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
31public:
32 EMW3080B_UART(bool debug,
33 PinName tx,
34 PinName rx,
35 PinName reset
36 );
37
38private:
39 DigitalOut _resetpin;
40 THREAD_DECLARE(MX_WIFI_UARTRecvThreadId);
41
42
43public:
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};
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:55