You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crypto/doc/nrf_cc310_mbedcrypto.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,12 @@ The library cannot be used in the :ref:`Non-Secure Processing Environment (NSPE)
203
203
The hardware can only process one request at a time.
204
204
Therefore, this library has used mutexes to make the library thread-safe.
205
205
206
+
On Arm CryptoCell 310 devices (nRF52840 and nRF91 Series), symmetric operations (like hashing and encryption) require data input to be present in DMA acessible RAM.
207
+
208
+
.. note::
209
+
210
+
In Arm CryptoCell 312 devices (nRF5340), there are no restrictions as CryptoCell has DMA access to Flash.
Copy file name to clipboardExpand all lines: nrf_modem/doc/at_interface.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ The following is the response format that must be the same as the modem's:
233
233
* Successful responses end with ``OK\r\n``.
234
234
* For error response, use ``ERROR\r\n``, ``+CME ERROR: <errorcode>``, or ``+CMS ERROR: <errorcode>`` depending on the error.
235
235
236
-
The following snippet shows how to set up and use an custom AT command:
236
+
The following snippet shows how to set up and use a custom AT command:
237
237
238
238
.. code-block:: c
239
239
@@ -319,9 +319,9 @@ The user is responsible for rescheduling the processing of AT notifications as a
319
319
In |NCS|, the :ref:`at_monitor_readme` library takes care of dispatching notifications to different parts of the application.
320
320
321
321
.. important::
322
-
In NCS applications, many libraries use the :ref:`at_monitor_readme` library to register their own callback with the Modem library using the :c:func:`nrf_modem_at_notif_handler_set` function.
323
-
If you are building an NCS application, do not use the :c:func:`nrf_modem_at_notif_handler_set` function to register your callback.
324
-
Instead, use the :ref:`at_monitor_readme` library to dispatch AT notifications to where you need them in your application, and to ensure compatibility with other NCS libraries.
322
+
In |NCS| applications, many libraries use the :ref:`at_monitor_readme` library to register their own callback with the Modem library using the :c:func:`nrf_modem_at_notif_handler_set` function.
323
+
If you are building an |NCS| application, do not use the :c:func:`nrf_modem_at_notif_handler_set` function to register your callback.
324
+
Instead, use the :ref:`at_monitor_readme` library to dispatch AT notifications to where you need them in your application, and to ensure compatibility with other |NCS| libraries.
325
325
The :ref:`at_monitor_readme` library also takes care of rescheduling the notifications to a thread context.
@@ -108,12 +108,12 @@ The details for each socket are described as follows:
108
108
NRF_SO_ERROR
109
109
When this option is specified, :c:func:`nrf_getsockopt` returns any pending errors on the socket and clears the error status.
110
110
It returns a ``0`` value if there is no pending error.
111
-
``NRF_SO_ERROR`` might be used to check for asynchronous errors on connected connectionless-mode sockets or for other types of asynchronous errors.
112
-
``NRF_SO_ERROR`` has no default value.
111
+
:c:macro:`NRF_SO_ERROR` might be used to check for asynchronous errors on connected connectionless-mode sockets or for other types of asynchronous errors.
112
+
:c:macro:`NRF_SO_ERROR` has no default value.
113
113
114
114
NRF_SO_REUSEADDR
115
115
Allow for the reuse of local addresses by using the :c:func:`nrf_bind` function.
116
-
The default value for ``NRF_SO_REUSEADDR`` is ``off``, that is, reuse of local addresses is not permitted.
116
+
The default value for :c:macro:`NRF_SO_REUSEADDR` is ``off``, that is, reuse of local addresses is not permitted.
117
117
118
118
NRF_SO_RCVTIMEO
119
119
Set a timeout value for the :c:func:`nrf_recv` and :c:func:`nrf_recvfrom` operations.
@@ -217,18 +217,18 @@ NRF_SO_SEC_PEER_VERIFY
217
217
Set the peer verification level.
218
218
The following values are accepted:
219
219
220
-
* ``NRF_SO_SEC_PEER_VERIFY_NONE`` - No peer verification
The socket option is supported from modem firmware v2.x.x.
269
269
The following values are expected:
270
270
271
-
* ``NRF_SO_SEC_HANDSHAKE_STATUS_FULL`` - TLS/DTLS attach/negotiation procedure was made with a full handshake, and session cache data was not used or it was not accepted by the server.
272
-
* ``NRF_SO_SEC_HANDSHAKE_STATUS_CACHED`` - The latest TLS/DTLS attach negotiation was completed successfully with cached session data.
271
+
* :c:macro:`NRF_SO_SEC_HANDSHAKE_STATUS_FULL` - TLS/DTLS attach/negotiation procedure was made with a full handshake, and session cache data was not used or it was not accepted by the server.
272
+
* :c:macro:`NRF_SO_SEC_HANDSHAKE_STATUS_CACHED` - The latest TLS/DTLS attach negotiation was completed successfully with cached session data.
273
273
274
274
The default is a full handshake.
275
275
@@ -278,9 +278,9 @@ NRF_SO_SEC_DTLS_CID
278
278
The socket option is supported from modem firmware v1.3.x, where x is greater than or equal to 5, and v2.x.x.
279
279
The following values are accepted:
280
280
281
-
* ``NRF_SO_SEC_DTLS_CID_DISABLED`` - The DTLS connection ID is not used, and the connection ID extension is not included in the client hello.
282
-
* ``NRF_SO_SEC_DTLS_CID_SUPPORTED`` - The DTLS connection ID is supported but not used, and the connection ID extension with a zero-length CID is included in the client hello.
283
-
* ``NRF_SO_SEC_DTLS_CID_ENABLED`` - The DTLS connection ID is used, and the connection ID extension with a valid CID is included in the client hello.
281
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_DISABLED` - The DTLS connection ID is not used, and the connection ID extension is not included in the client hello.
282
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_SUPPORTED` - The DTLS connection ID is supported but not used, and the connection ID extension with a zero-length CID is included in the client hello.
283
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_ENABLED` - The DTLS connection ID is used, and the connection ID extension with a valid CID is included in the client hello.
284
284
285
285
The default is disabled.
286
286
@@ -290,29 +290,29 @@ NRF_SO_SEC_DTLS_CID_STATUS
290
290
The socket option is supported from modem firmware v1.3.x, where x is greater than or equal to 5, and v2.x.x.
291
291
The following values are expected:
292
292
293
-
* ``NRF_SO_SEC_DTLS_CID_STATUS_DISABLED`` - The DTLS connection ID is not included in DTLS records sent to and from the modem.
293
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_STATUS_DISABLED` - The DTLS connection ID is not included in DTLS records sent to and from the modem.
294
294
This status is returned before the DTLS handshake is complete.
295
-
* ``NRF_SO_SEC_DTLS_CID_STATUS_DOWNLINK`` - The DTLS connection ID is included only in DTLS records sent to the modem.
296
-
* ``NRF_SO_SEC_DTLS_CID_STATUS_UPLINK`` - The DTLS connection ID is included only in DTLS records sent from the modem.
297
-
* ``NRF_SO_SEC_DTLS_CID_STATUS_BIDIRECTIONAL`` - The DTLS connection ID is included in DTLS records sent to and from the modem.
295
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_STATUS_DOWNLINK` - The DTLS connection ID is included only in DTLS records sent to the modem.
296
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_STATUS_UPLINK` - The DTLS connection ID is included only in DTLS records sent from the modem.
297
+
* :c:macro:`NRF_SO_SEC_DTLS_CID_STATUS_BIDIRECTIONAL` - The DTLS connection ID is included in DTLS records sent to and from the modem.
298
298
299
299
NRF_SO_SEC_DTLS_CONN_SAVE
300
300
Save DTLS connection.
301
301
This option is write-only.
302
302
This option require a DTLS v1.2 connection with renegotiation disabled.
303
303
The socket option is supported from modem firmware v1.3.x, where x is greater than or equal to 5, and v2.x.x.
304
304
305
-
Once the DTLS context is saved, the socket can't be used before the DTLS context is loaded with NRF_SO_SEC_DTLS_CONN_LOAD.
305
+
Once the DTLS context is saved, the socket can't be used before the DTLS context is loaded with :c:macro:`NRF_SO_SEC_DTLS_CONN_LOAD`.
306
306
307
307
This option will fail with nrf_errno ``NRF_EAGAIN`` if an error happened during serialization of the SSL context.
308
308
This can occur, for instance, when the modem cannot allocate enough memory or if the socket is busy sending or receiving data.
309
309
In this case, the SSL context is still present in the socket, so data sending is still possible.
310
310
The option will fail with nrf_errno ``NRF_EINVAL`` if the socket option is not supported with the current configuration, for instance because the DTLS handshake is not completed,
311
-
the connection is not an DTLS v1.2 connection with renegotiation disabled, or the connection does not use an AEAD ciper suite (AES-CCM or AES-GCM).
311
+
the connection is not an DTLS v1.2 connection with renegotiation disabled, or the connection does not use an AEAD cipher suite (AES-CCM or AES-GCM).
312
312
The option will fail with nrf_errno ``NRF_ENOMEM`` if the amount of saved connections exceeds four.
313
313
314
314
NRF_SO_SEC_DTLS_CONN_LOAD
315
-
LOAD DTLS connection.
315
+
Load DTLS connection.
316
316
This option is write-only.
317
317
The socket option is supported from modem firmware v1.3.x, where x is greater than or equal to 5, and v2.x.x.
318
318
@@ -336,7 +336,7 @@ For more information about how to configure PDP contexts, activate PDN connectio
336
336
Configuring a socket to use a PDN
337
337
=================================
338
338
339
-
The application can select which PDN to use on a specific socket by using the :c:func:`nrf_setsockopt` function, with the ``NRF_SO_BINDTODEVICE`` option and specifying the PDN ID as a string, prefixed by ``pdn``.
339
+
The application can select which PDN to use on a specific socket by using the :c:func:`nrf_setsockopt` function, with the :c:macro:`NRF_SO_BINDTODEVICE` option and specifying the PDN ID as a string, prefixed by ``pdn``.
340
340
For example, to select the PDN with ID 1, the application must pass ``pdn1`` as the option value.
341
341
342
342
The following code shows how to create an IPv4 TCP stream socket and configure it to use the PDN with ID 1:
@@ -369,7 +369,7 @@ Handling PDN errors on sockets
369
369
During operation, an active PDN connection may be deactivated due to loss of connectivity or other reasons.
370
370
When a socket operation is attempted on a socket that no longer has an active PDN connection, the operation will return ``-1`` and set ``errno`` to ``NRF_ENETDOWN``.
371
371
If the socket is being polled, the :c:func:`nrf_poll` function will set the ``POLLERR`` flag and set the socket error to ``NRF_ENETDOWN``.
372
-
The socket error can be retrieved using the ``NRF_SO_ERROR`` socket option.
372
+
The socket error can be retrieved using the :c:macro:`NRF_SO_ERROR` socket option.
373
373
374
374
When the ``NRF_ENETDOWN`` error is detected, the socket is no longer usable and must be closed by the application.
375
375
The application is responsible for detecting when the PDN connection is activated again, before re-creating the socket and attempting the failed operation again.
Copy file name to clipboardExpand all lines: softdevice_controller/CHANGELOG.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ Changes
30
30
31
31
* The ``VersNr`` field in the ``LL_VERSION_IND`` packet now contains the value 0x0D to indicate compatibility with Bluetooth Core Specification v5.4 (DRGN-18624).
32
32
* Receiving a Periodic Advertisement Sync Transfer (PAST) with invalid parameters will now generate the ``LE Periodic Advertising Sync Transfer Received`` event when receiving PAST is enabled (DRGN-18803).
33
-
* Periodic advertiser is allocated from the Periodic Advertising with Responses (PAwR) Advertiser sets when :c:enumerator:`SDC_CFG_TYPE_PERIODIC_ADV_RSP_COUNT` is available.
34
-
Otherwise, it is allocated from the Periodic Advertiser sets if :c:enumerator:`SDC_CFG_TYPE_PERIODIC_ADV_COUNT` is set (DRGN-18979).
33
+
* Periodic advertiser is allocated from the Periodic Advertising with Responses (PAwR) Advertiser sets when :c:enum:`SDC_CFG_TYPE_PERIODIC_ADV_RSP_COUNT` is available.
34
+
Otherwise, it is allocated from the Periodic Advertiser sets if :c:enum:`SDC_CFG_TYPE_PERIODIC_ADV_COUNT` is set (DRGN-18979).
35
35
* The controller now returns the error code ``0x0D`` instead of ``0x09`` if it has insufficient resources to handle more connections and the host tries to start a connectable advertiser or the controller receives the commands ``LE Extended Create Connection`` or ``LE Create Connection`` (DRGN-18944).
0 commit comments