![]() |
nRF Connect SDK API 3.4.99
|
| int contin_array_net_buf_create | ( | struct net_buf * | pcm_contin, |
| struct net_buf const *const | pcm_finite, | ||
| uint32_t | locations, | ||
| uint16_t *const | _finite_pos ) |
#include <contin_array.h>
Creates a continuous array in the locations in the net_buf as given in locations, from a single channel finite array in a net_buf.
| pcm_contin | Pointer to the destination net buf. |
| pcm_finite | Pointer to the single channel de-interleaved finite array net buf. |
| locations | Location(s) to write the finite array to. |
| _finite_pos | Variable used internally. Must be set to 0 for the first run and not changed. |
| 0 | If the operation was successful. |
| EPERM | If any sizes or location is out of range. |
| ENXIO | On NULL pointer. |
| EINVAL | If the _finite_pos or locations are out of range. |