pinebuds/services/communication/communication_svr.h

26 lines
499 B
C
Raw Permalink Normal View History

2022-08-15 04:20:27 -05:00
#ifndef __COMMUNICATION_SVR_H__
#define __COMMUNICATION_SVR_H__
#ifdef __cplusplus
extern "C" {
#endif
#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);
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