mostSyncDealloc
Valid for: CANoe DEFunction Syntax
void OnMostSyncDeallocResult(long deallocResult, long label);
Description
MOST25: This function releases reserved bandwidth for synchronous channels by sending a Dealloc system message to the TimingMaster. The result is reported by means of the callback functionOnMostSyncDeallocResult. This requires defining OnMostSyncDeallocResult in the CAPL program using the following signature: OnMostSyncDeallocResult(long deallocResult, long label)
Note
- The service can only process one request at a time. After mostSyncAlloc or
mostSyncDeallocis called, the next request cannot be made until the result of the current request is returned – asynchronously. OnMostSyncDeallocResult()is only called for channel labels reserved via mostSyncAlloc.OnMostSyncDeallocResult()is also called for each reserved label if release of all channels is requested (DeallocAll).
OnMostSyncDeallocResult will not be called on completion. mostAllocTableGetCL can be applied to check the de-allocation result.
Callback:
This function is called on completion of the deallocation of channels triggered by the call of the function.
Whether the deallocation was successful and if so, which channels were deallocated, is indicated in the parameters described below.
Parameters
- label: Channel label.
- MOST25: content of channels[0] in OnMostSyncAllocResult, see mostSyncAlloc. Value 0x7F (=DeallocAll) releases all synchronous channels.
- MOST150: Label number (see mostAllocTableGetCL). Value 0xFFF releases all synchronous channels previously reserved with mostSyncAlloc (VN2640 only).