blob: df595354a962e61e264e5c5197d3a0f34bb931ce [file] [log] [blame]
#ifndef __IR_ENCODE_H__
#define __IR_ENCODE_H__
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
bool protocol_match(const char *name, enum rc_proto *proto);
unsigned protocol_carrier(enum rc_proto proto);
unsigned protocol_max_size(enum rc_proto proto);
void protocol_scancode_valid(enum rc_proto *proto, unsigned *scancode);
unsigned protocol_scancode_mask(enum rc_proto proto);
bool protocol_encoder_available(enum rc_proto proto);
unsigned protocol_encode(enum rc_proto proto, unsigned scancode, unsigned *buf);
const char *protocol_name(enum rc_proto proto);
#endif