/*! * Copyright (c) 2016, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @c:include("myAlloc.hpp") @output_dir("erpc_outputs") @separateInterfaceOutput(true) program test; import "../common/unit_test_common.erpc" enum caseValues { bar, baz } enum fruit { apple, orange, banana, coconut, grape, papaya, kiwi, returnVal } //const int32 returnVal = 10; type floatList = list struct foobar { float a binary rawString } union unionType { case apple: foobar myFoobar case banana: case papaya: int32 x; float y; case orange: list a case coconut: uint32 cx; list cc @length(cx) case returnVal: int32 ret default: bool c int32 blah } struct foo { int32 discriminator union(discriminator) { case apple: foobar myFoobar case banana: case papaya: int32 x; float y; case orange: list a case coconut: uint32 cx; list cc @length(cx) case returnVal: int32 ret default: bool c int32 blah } bing } struct InnerList { list myList } const uint8 gcBleDeviceAddressSize_c = 6 type bleDeviceAddress_t = uint8[gcBleDeviceAddressSize_c] type bool_t = uint8 enum bleResult_t { gBleStatusBase_c, gBleSuccess_c, gBleOsError_c } enum gapGenericEventType_t { gInternalError_c, gWhiteListSizeReady_c, gRandomAddressReady_c, gPublicAddressRead_c, gAdvertisingSetupFailed_c, gAdvTxPowerLevelRead_c, gPrivateResolvableAddressVerified_c gTestCaseReturn_c } enum gapInternalErrorSource_t { gHciCommandStatus_c, gCheckPrivateResolvableAddress_c, gVerifySignature_c, gConnect_c } struct gapInternalError_t { bleResult_t errorCode gapInternalErrorSource_t errorSource uint16 hciCommandOpcode } struct gapGenericEvent_t { gapGenericEventType_t eventType; union(eventType) { case gInternalError_c: gapInternalError_t internalError /*! gapGenericEvent_t sendMyFoo(foo f @retain) -> foo sendMyUnion(fruit discriminator, unionType unionVariable @discriminator(discriminator)) -> foo testInnerList(InnerList il) -> InnerList }