yy1717
2021-02-07 cea2a94fc97e79897cdfd217be8250c075974a1a
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
//
// Created by YY on 2019/10/14.
//
 
#ifndef RTKBASESTATION_NATIVE_LIB_H
#define RTKBASESTATION_NATIVE_LIB_H
 
#include <cstdint>
#include <string>
 
#include "test_common/Geometry.h"
 
typedef struct {
    int seq;
    void (*callback)(int);
} tts_back_t;
 
char * GetImei(void);
 
int DESEncrypt(const uint8_t *key, int key_length,
               const uint8_t *plaintext, int plaintext_length,
               uint8_t **ciphertext);
 
 
void TextOsd(int type, const char *text);
void DrawScreen(const Polygon *map, const Polygon *car);
int SendMsgToMainProc(int cmd, const char *value);
int PlayTTS(const char *string, void (*callback)(int));
int PlayTTS(std::string &tts, void (*callback)(int));
void PlayRing(void);
void SendToBluetooth(const uint8_t *data, int length);
void ConnectToBluetooth(const char *addr, const char *pin);
void DisconnectBluetooth(void);
 
#endif //RTKBASESTATION_NATIVE_LIB_H