rfhelp.h
Go to the documentation of this file.
1 /*
2  Copyright 2015 Benjamin Vedder benjamin@vedder.se
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef RFHELP_H_
19 #define RFHELP_H_
20 
21 // Functions
22 void rfhelp_init(void);
23 void rfhelp_restart(void);
24 int rfhelp_send_data(char *data, int len);
25 int rfhelp_send_data_crc(char *data, int len);
26 int rfhelp_read_rx_data(char *data, int *len, int *pipe);
27 int rfhelp_read_rx_data_crc(char *data, int *len, int *pipe);
28 int rfhelp_rf_status(void);
29 void rfhelp_set_tx_addr(const char *addr, int addr_len);
30 void rfhelp_set_rx_addr(int pipe, const char *addr, int addr_len);
31 void rfhelp_power_down(void);
32 void rfhelp_power_up(void);
33 
34 #endif /* RFHELP_H_ */
int rfhelp_read_rx_data_crc(char *data, int *len, int *pipe)
Definition: rfhelp.c:233
int rfhelp_rf_status(void)
Definition: rfhelp.c:249
void rfhelp_power_up(void)
Definition: rfhelp.c:286
int rfhelp_read_rx_data(char *data, int *len, int *pipe)
Definition: rfhelp.c:178
int rfhelp_send_data(char *data, int len)
Definition: rfhelp.c:85
int rfhelp_send_data_crc(char *data, int len)
Definition: rfhelp.c:149
void rfhelp_set_tx_addr(const char *addr, int addr_len)
Definition: rfhelp.c:257
void rfhelp_power_down(void)
Definition: rfhelp.c:280
void rfhelp_set_rx_addr(int pipe, const char *addr, int addr_len)
Definition: rfhelp.c:268
void rfhelp_init(void)
Definition: rfhelp.c:34
void rfhelp_restart(void)
Definition: rfhelp.c:57