-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiRadio_AHT.h
More file actions
69 lines (42 loc) · 1.13 KB
/
MultiRadio_AHT.h
File metadata and controls
69 lines (42 loc) · 1.13 KB
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
/*
* MultiRadio_AHT.h
*
* Functions to be called by the AHT main
*/
#ifndef MULTIRADIO_AHT_H
#define MULTIRADIO_AHT_H
#include "MultiRadio_defines.h"
#include "MultiRadio_library.h"
typedef enum{
APPWIFI_RESET,
APPWIFI_POWERCONFIG,
APPWIFI_SSID,
APPWIFI_SCK,
APPWFI_TXRX,
APPWFI_TXDT,
APP_SLEEP
}AppWifi_e;
/*enum {
TRANSFER_WAIT,
TRANSFER_COMPLETE,
TRANSFER_ERROR
} Transfer_e;*/
typedef enum{
TX_IMG_INIT,
TX_IMG_SEND1,
//TX_IMG_SEND2,
TX_IMG_WAIT1,
TX_IMG_WAIT2,
TI_IMG_END
}tximg_e;
/* Private function prototypes -----------------------------------------------*/
void InitBuffers();
void Send_Data_Raw(uint8_t *img, uint32_t size, uint8_t headerType, struct pi_device *pdeviceL3);
/* Private function prototypes -----------------------------------------------*/
/* Public function prototypes -----------------------------------------------*/
void initMultiradio();
int initWiFi();
int stopWifi();
int WIFI_sendData(const unsigned char * dataToSend, uint32_t size, uint8_t headerType, struct pi_device *pdeviceL3);
/* Public function prototypes -----------------------------------------------*/
#endif