blob: 5746eb8256506d3fa7f1460d23fb7c17757d013e (
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
|
/*
* CommunicationTask.h
*
* Created on: 8 ����� 2018
* Author: shlomo
*/
#ifndef COMMUNICATION_COMMUNICATIONTASK_H_
#define COMMUNICATION_COMMUNICATIONTASK_H_
void RegisterReceiveCallback(void (*callback_ptr)(char* buffer, size_t length));
uint32_t initArray( size_t initialSize);
void insertArray( char element);
void freeArray(void);
extern uint32_t CommunicationTaskInit(void);
extern uint32_t CommunicationTaskMessageReceived(uint16_t msgSize);
extern uint32_t CommunicationTaskSendMessage(char* buffer,size_t length);
#define isUART true
#define isUSB false
extern int32_t SetCommunicationPath(bool UARTorUSB);
#endif /* COMMUNICATION_COMMUNICATIONTASK_H_ */
|