2022-08-15 04:20:27 -05:00
|
|
|
#ifndef __COMMUNICATION_SVR_H__
|
|
|
|
#define __COMMUNICATION_SVR_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-02-01 14:52:54 -06:00
|
|
|
#include <stdint.h>
|
2022-08-15 04:20:27 -05:00
|
|
|
|
|
|
|
typedef void (*communication_receive_func_typedef)(uint8_t *buf, uint8_t len);
|
|
|
|
|
|
|
|
void communication_init(void);
|
2023-02-01 14:52:54 -06:00
|
|
|
int communication_receive_register_callback(
|
|
|
|
communication_receive_func_typedef p);
|
|
|
|
int communication_send_buf(uint8_t *buf, uint8_t len);
|
2022-08-15 04:20:27 -05:00
|
|
|
|
|
|
|
#ifdef KNOWLES_UART_DATA
|
|
|
|
void uart_audio_init();
|
|
|
|
void uart_audio_deinit();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|