nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ BYTES_TO_WORDS

#define BYTES_TO_WORDS ( n_bytes)

#include <ble_common.h>

Value:
(((n_bytes) + 3) >> 2)

Calculate how many 32-bit words are needed to hold n_bytes.

Parameters
[in]n_bytesNumber of bytes.
Returns
Number of 32-bit words.