include/rc5.h
Go to the documentation of this file.
00001 #ifndef _USER_RC5_H
00002 #define _USER_RC5_H
00003 
00004 #include "../lib/rc5_common.h"
00005
00015 uint8_t rc5_has_data_pwm(void *mask);
00024 bool rc5_has_data(uint8_t mask);
00025
00036 int8_t rc5_recv_command(uint8_t dir, uint8_t source, uint8_t *command, uint16_t *data, uint8_t *real_source);
00037
00044 int8_t rc5_recv_command_timeout(uint8_t dir, uint8_t source, uint8_t *command, uint16_t *data, uint8_t *real_source, uint16_t ms);
00045
00055 int8_t rc5_recv_specific_command(uint8_t dir, uint8_t source, uint8_t command, uint16_t *data, uint8_t *real_source);
00056
00061 int8_t rc5_recv_specific_command_timeout(uint8_t dir, uint8_t source, uint8_t command, uint16_t *data, uint8_t *real_source, uint16_t ms);
00062
00069 int8_t rc5_recv_rc_command(uint8_t *rc_data);
00070
00077 void rc5_send_command(uint8_t dir, uint8_t dest, uint8_t command, uint16_t data);
00078
00079 //send RC5 telegram
00087 void rc5_send_rc_command(uint8_t dir, uint8_t dev_address, uint8_t command);
00088
00092 void rc5_recv_clear_all(void);
00093
00094 #endif // _USER_RC5_H