irda_rc6_spec.c 495 B

123456789101112131415161718
  1. #include "../irda_i.h"
  2. #include "irda_protocol_defs_i.h"
  3. static const IrdaProtocolSpecification irda_rc6_protocol_specification = {
  4. .name = "RC6",
  5. .address_length = 8,
  6. .command_length = 8,
  7. .frequency = IRDA_RC6_CARRIER_FREQUENCY,
  8. .duty_cycle = IRDA_RC6_DUTY_CYCLE,
  9. };
  10. const IrdaProtocolSpecification* irda_rc6_get_spec(IrdaProtocol protocol) {
  11. if (protocol == IrdaProtocolRC6)
  12. return &irda_rc6_protocol_specification;
  13. else
  14. return NULL;
  15. }