nn::uds::CTR::Initialize Functionnn::Result Initialize( nn::os::Event * pStatusUpdateEvent, void * receiveBuffer, const size_t bufferSize );
| Name | Description | |
|---|---|---|
| out | pStatusUpdateEvent | Event used to notify about connection state updates. This is initialized as an auto-reset event within the library. |
| in | receiveBuffer | Pointer indicating the head of the receive buffer used by the UDS library. Specify a buffer aligned to 4096 bytes. Device memory cannot be used. Access to the memory region specified by the buffer is prohibited until the Finalize function's execution is complete. |
| in | bufferSize | Size of the receive buffer. Specify a value that is a multiple of 4096. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Initialization successful. |
| ResultAlreadyOccupiedWirelessDevice | Communication is already taking place. New UDS communication cannot begin. |
| ResultOutOfResource | System resources are insufficient. |
| ResultWirelessOff | Wireless OFF mode. |
Initializes the UDS library. Initialization fails if any other communication features are already in use.
This function may block for a long time because it finalizes communications in the background and the UDS library takes control of the communication device until Finalize is run.
Finalize completes.
CONFIDENTIAL