nfm_base_keyprofiles.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #include "app/nfm/nfm_base.h"
  2. #define MAKE_PROFILE_NFM( id, profileName_VAL, allowedInputPorts_VAL, allowedOutputPorts_VAL, defaultInputState_VAL, inputPortStates_VAL)\
  3. const sNFMControlSwitchProfile_t id =\
  4. {\
  5. .profileName = profileName_VAL,\
  6. .controlProfile.allowedInputPorts = allowedInputPorts_VAL,\
  7. .controlProfile.allowedOutputPorts = allowedOutputPorts_VAL,\
  8. .controlProfile.defaultInputState = defaultInputState_VAL,\
  9. .controlProfile.inputPortStates = inputPortStates_VAL,\
  10. };
  11. //------------------------------------------------------------------------------
  12. // PORTS EXTENDER
  13. //------------------------------------------------------------------------------
  14. //----------------------------PE750212------------------------------------------
  15. const eNFMPorts_t ePE750212InputAvailableStates[] =
  16. {
  17. eNFMPort_1,
  18. eNFMPort_2
  19. };
  20. uint16_t ePE750212InputPortStates[sizeof(ePE750212InputAvailableStates)/sizeof(ePE750212InputAvailableStates[0])] =
  21. {
  22. eTerminatePortState, eTerminatePortState
  23. };
  24. uint16_t ePE2P16TInputPortStates[sizeof(ePE750212InputAvailableStates)/sizeof(ePE750212InputAvailableStates[0])] =
  25. {
  26. eTerminatePortState, eTerminatePortState
  27. };
  28. //----------------------------PE750212------------------------------------------
  29. MAKE_PROFILE_NFM( nf_profile_NFM,
  30. "PortsExtender",
  31. 2,
  32. 12,
  33. eTerminatePortState,
  34. ePE750212InputPortStates
  35. );
  36. MAKE_PROFILE_NFM( nf_profile_SWB_16,
  37. "PortsExtender",
  38. 2,
  39. 16,
  40. eTerminatePortState,
  41. ePE2P16TInputPortStates
  42. );
  43. MAKE_PROFILE_NFM( nf_profile_SWB_8,
  44. "PortsExtender",
  45. 2,
  46. 8,
  47. eTerminatePortState,
  48. ePE2P16TInputPortStates
  49. );