irda_samsung_spec.c 531 B

123456789101112131415161718
  1. #include "../irda_i.h"
  2. #include "irda_protocol_defs_i.h"
  3. static const IrdaProtocolSpecification irda_samsung32_protocol_specification = {
  4. .name = "Samsung32",
  5. .address_length = 8,
  6. .command_length = 8,
  7. .frequency = IRDA_COMMON_CARRIER_FREQUENCY,
  8. .duty_cycle = IRDA_COMMON_DUTY_CYCLE,
  9. };
  10. const IrdaProtocolSpecification* irda_samsung32_get_spec(IrdaProtocol protocol) {
  11. if (protocol == IrdaProtocolSamsung32)
  12. return &irda_samsung32_protocol_specification;
  13. else
  14. return NULL;
  15. }