Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
nfc_ledger.h
Go to the documentation of this file.
1/*****************************************************************************
2 * (c) 2025 Ledger SAS.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
17#pragma once
18
19/* Includes ------------------------------------------------------------------*/
20#include <stdint.h>
21
22/* Exported enumerations -----------------------------------------------------*/
27
28/* Exported defines --------------------------------------------------------*/
29
30/* Exported types, structures, unions ----------------------------------------*/
31
32/* Exported macros------------------------------------------------------------*/
33
34/* Exported variables --------------------------------------------------------*/
35
36/* Exported functions prototypes--------------------------------------------- */
37
38void NFC_LEDGER_init(uint8_t force_restart);
39void NFC_LEDGER_start(uint8_t mode); // nfc_ledger_mode_e
40void NFC_LEDGER_stop(void);
41
42// Rx
43int NFC_LEDGER_rx_seph_apdu_evt(uint8_t *seph_buffer,
44 uint16_t seph_buffer_length,
45 uint8_t *apdu_buffer,
46 uint16_t apdu_buffer_max_length);
47
48// Tx
49uint32_t NFC_LEDGER_send(const uint8_t *packet, uint16_t packet_length, uint32_t timeout_ms);
void NFC_LEDGER_stop(void)
void NFC_LEDGER_init(uint8_t force_restart)
int NFC_LEDGER_rx_seph_apdu_evt(uint8_t *seph_buffer, uint16_t seph_buffer_length, uint8_t *apdu_buffer, uint16_t apdu_buffer_max_length)
uint32_t NFC_LEDGER_send(const uint8_t *packet, uint16_t packet_length, uint32_t timeout_ms)
void NFC_LEDGER_start(uint8_t mode)
nfc_ledger_mode_e
Definition nfc_ledger.h:23
@ NFC_LEDGER_MODE_READER
Definition nfc_ledger.h:25
@ NFC_LEDGER_MODE_CARD_EMULATION
Definition nfc_ledger.h:24