-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradio433_lib.h
More file actions
25 lines (17 loc) · 918 Bytes
/
radio433_lib.h
File metadata and controls
25 lines (17 loc) · 918 Bytes
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
#ifndef _RADIO433_LIB_H_
#define _RADIO433_LIB_H_
#include "radio433_types.h"
/* Initialize library */
int Radio433_init(int tx_gpio, int rx_gpio);
/* Get code */
unsigned long long Radio433_getCode(struct timeval *ts, int *type, int *bits);
/* Get code (with additional timing data in miliseconds) */
unsigned long long Radio433_getCodeExt(struct timeval *ts, int *type, int *bits,
int *codetime, int *repeats, int *interval);
/* Pulse code: transmit timed pulses ('len' values in us, 'starthigh' == 0/1) */
int Radio433_pulseCode(const unsigned long *pulses, int len, int starthigh);
/* Send raw code: use selected modulation and length in bits */
int Radio433_sendRawCode(unsigned long long code, int coding, int bits, int repeats);
/* Send device-specific code (repeats == 0 - use default number of packets) */
int Radio433_sendDeviceCode(unsigned long long code, int type, int repeats);
#endif