[][src]Function cmsis_rtos2::cmsis_os2::osMemoryPoolAlloc

pub unsafe extern "C" fn osMemoryPoolAlloc(
    mp_id: osMemoryPoolId_t,
    timeout: u32
) -> *mut c_void

Allocate a memory block from a Memory Pool. \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. \return address of the allocated memory block or NULL in case of no memory is available.