Skip to content

Commit a2cb622

Browse files
nfc: nfc_platform: replace nrfx_err_t with int
NRFX drivers now return errno codes. Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
1 parent 582fb48 commit a2cb622

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

nfc/include/nfc_platform.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ typedef void (* nfc_lib_cb_resolve_t)(const void * p_ctx, const uint8_t * p_data
6161
* @param[in, out] p_irq_priority Pointer to the interrupt priority configuration. You must
6262
* set its value inside this function.
6363
*
64-
* @retval NRFX_SUCCESS If the NFC module is initialized successfully. If one
65-
* of the arguments is invalid, an error code is returned.
64+
* @retval 0 If the NFC module is initialized successfully. If one
65+
* of the arguments is invalid, an error code is returned.
6666
*/
67-
nrfx_err_t nfc_platform_setup(nfc_lib_cb_resolve_t nfc_lib_cb_resolve, uint8_t * p_irq_priority);
67+
int nfc_platform_setup(nfc_lib_cb_resolve_t nfc_lib_cb_resolve, uint8_t * p_irq_priority);
6868

6969

7070
/**
@@ -75,13 +75,11 @@ nrfx_err_t nfc_platform_setup(nfc_lib_cb_resolve_t nfc_lib_cb_resolve, uint8_t *
7575
* can be used to fill the Type 2 Tag Internal Bytes.
7676
* @param[in] nfcid1_buff_len Length of the NFCID1 buffer.
7777
*
78-
* @retval NRFX_SUCCESS The operation was successful.
79-
* @retval NRFX_ERROR_INVALID_LENGTH Length of the NFCID buffer is different than
80-
* NRFX_NFCT_NFCID1_SINGLE_SIZE,
81-
* NRFX_NFCT_NFCID1_DOUBLE_SIZE, or
82-
* NRFX_NFCT_NFCID1_TRIPLE_SIZE.
78+
* @retval 0 The operation was successful.
79+
* @retval -E2BIG Length of the NFCID buffer is different than NRFX_NFCT_NFCID1_SINGLE_SIZE,
80+
* NRFX_NFCT_NFCID1_DOUBLE_SIZE, or NRFX_NFCT_NFCID1_TRIPLE_SIZE.
8381
*/
84-
nrfx_err_t nfc_platform_nfcid1_default_bytes_get(uint8_t * const p_nfcid1_buff,
82+
int nfc_platform_nfcid1_default_bytes_get(uint8_t * const p_nfcid1_buff,
8583
uint32_t nfcid1_buff_len);
8684

8785

0 commit comments

Comments
 (0)