pub unsafe extern "C" fn otInstanceInit(
aInstanceBuffer: *mut c_void,
aInstanceBufferSize: *mut usize,
) -> *mut otInstance
Expand description
Initializes the OpenThread library.
Initializes OpenThread and prepares it for subsequent OpenThread API calls. This function must be called before any other calls to OpenThread.
Is available and can only be used when support for multiple OpenThread instances is enabled.
@param[in] aInstanceBuffer The buffer for OpenThread to use for allocating the otInstance structure. @param[in,out] aInstanceBufferSize On input, the size of aInstanceBuffer. On output, if not enough space for otInstance, the number of bytes required for otInstance.
@returns A pointer to the new OpenThread instance.
@sa otInstanceFinalize