infrared_samsung_spec.c 563 B

1234567891011121314151617
  1. #include "../infrared_i.h"
  2. #include "infrared_protocol_defs_i.h"
  3. static const InfraredProtocolSpecification infrared_samsung32_protocol_specification = {
  4. .name = "Samsung32",
  5. .address_length = 8,
  6. .command_length = 8,
  7. .frequency = INFRARED_COMMON_CARRIER_FREQUENCY,
  8. .duty_cycle = INFRARED_COMMON_DUTY_CYCLE,
  9. };
  10. const InfraredProtocolSpecification* infrared_samsung32_get_spec(InfraredProtocol protocol) {
  11. if(protocol == InfraredProtocolSamsung32)
  12. return &infrared_samsung32_protocol_specification;
  13. else
  14. return NULL;
  15. }