Dealing with unsupported operations

If you are developing a RAM that communicates with an SCM that does not support a CARMA operation, you should inform the client that it is disabled by appropriately modifying your RAM's CAF information (see Customizing a RAM API using the CAF). You may assume that CARMA clients will not invoke actions marked as disabled. However, you should still account for the possibility of a client invoking a disabled action by taking one of the two following actions:
  • Do not implement the function for the disabled action and do not include a pragma export statement for the function. This will cause CARMA to return a return code of 38 to any client that requests that operation from your RAM.
  • Implement the function for the disabled action to simply return a return code of 107. Include the #pragma export statement for the function as you normally would.