infrared_rc6_spec.c 527 B

1234567891011121314151617
  1. #include "../infrared_i.h"
  2. #include "infrared_protocol_defs_i.h"
  3. static const InfraredProtocolSpecification infrared_rc6_protocol_specification = {
  4. .name = "RC6",
  5. .address_length = 8,
  6. .command_length = 8,
  7. .frequency = INFRARED_RC6_CARRIER_FREQUENCY,
  8. .duty_cycle = INFRARED_RC6_DUTY_CYCLE,
  9. };
  10. const InfraredProtocolSpecification* infrared_rc6_get_spec(InfraredProtocol protocol) {
  11. if(protocol == InfraredProtocolRC6)
  12. return &infrared_rc6_protocol_specification;
  13. else
  14. return NULL;
  15. }