blob: 3966e121bbdc7b0a5e00237f5e88ccc4f6cdc7e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/**
******************************************************************************
* @file stm32wb_at.h
* @author MCD Application Team
* @brief Header file of AT transport layer.
******************************************************************************
* @attention
*
* Copyright (c) 2021 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef STM32WB_AT_H
#define STM32WB_AT_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#define AT_PRE_CMD "AT+"
#define AT_CMD_TEST "AT"
#define AT_GET "?"
#define AT_SET "="
#define AT_READ ":"
#define AT_REPLY "+"
#define AT_EVENT "<"
#define AT_SEPARATOR ","
#define AT_EOL "\r\n"
#define AT_CMD_STATUS_OK "OK"
#define AT_CMD_STATUS_ERROR "ERROR"
/* Exported macros -----------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
uint8_t stm32wb_at_Init(uint8_t *buff_rx, uint8_t buff_rx_size);
uint8_t stm32wb_at_Received(uint8_t byte);
uint8_t stm32wb_at_Process_rx_frame(char * str);
#ifdef __cplusplus
}
#endif
#endif /* STM32WB_AT_H */
|