blob: bf30a32c8c9dadef8d38b1d31b3dd7a446a55034 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/**
******************************************************************************
* @file dts.h
* @author MCD Application Team
* @brief Header for ble_application.c module
******************************************************************************
* @attention
*
* Copyright (c) 2019-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 __DTS_STM_H
#define __DTS_STM_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "ble_types.h"
#include "ble_conf.h"
/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Exported types LBR Client Implementation-----------------------------------*/
typedef struct
{
uint8_t *pPayload;
// uint32_t *pPayload;
uint32_t pPayload_n_1;
uint32_t pPayload_n;
uint32_t Length;
} DTS_STM_Payload_t;
typedef enum
{
DTS_STM__NOTIFICATION_ENABLED,
DTS_STM_NOTIFICATION_DISABLED,
DTS_STM_GATT_TX_POOL_AVAILABLE,
DTC_NOTIFICATION_ENABLED,
DTC_NOTIFICATION_DISABLED,
DTS_STM_DATA_RECEIVED,
DTS_MTU_EXCHANGED,
} DTS_STM_NotCode_t;
typedef struct
{
uint8_t ATT_MTU_exchanged;
DTS_STM_NotCode_t Evt_Opcode;
DTS_STM_Payload_t DataTransfered;
} DTS_STM_App_Notification_evt_t;
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* External variables --------------------------------------------------------*/
/* Exported macros -----------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void DTS_STM_Init( void );
tBleStatus DTS_STM_UpdateChar( uint16_t UUID , uint8_t *pPayload );
void DTS_Notification( DTS_STM_App_Notification_evt_t *pNotification );
void BLE_SVC_GAP_Change_PHY(void);
void BLE_SVC_GAP_Security_Req(void);
void BLE_SVC_GAP_Clear_DataBase(void);
void Resume_Notification(void);
tBleStatus DTS_STM_UpdateCharThroughput(DTS_STM_Payload_t *pDataValue );
#ifdef __cplusplus
}
#endif
#endif /*__DTS_STM_H */
|