-
Notifications
You must be signed in to change notification settings - Fork 2
/
radio.h
39 lines (31 loc) · 1.43 KB
/
radio.h
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
/*******************************************************************************************************
* @file radio.h
* @brief nRF52832 radio driver
* @version 1.0
* @date 2017-6-8
* @author Nikko
*******************************************************************************************************
*******************************************************************************************************
* History:
*------------------------------------------------------------------------------------------------------
*| Date | Version | Description
*| 2017-6-8 | V1.0.0 | First release
*******************************************************************************************************/
#ifndef __RADIO_H__
#define __RADIO_H__
/* Includes ------------------------------------------------------------------------------------------ */
#include <stdint.h>
#include "nrf.h"
#if defined(__cplusplus)
extern "C" {
#endif
void Radio_Init(void);
int32_t Radio_Send(uint8_t *buf, int32_t len);
int32_t Radio_ListenLoopback(uint8_t *buf, int32_t bufSize, int32_t *Rssi, void (*fpRcv_cbFunc)(uint8_t*, int32_t));
#ifdef __cplusplus
}
#endif
#endif // end of __RADIO_H__
/*********************************************************************************************************
End Of File
*********************************************************************************************************/