Home
last modified time | relevance | path

Searched refs:EseInterface (Results 1 – 25 of 26) sorted by relevance

12

/external/libese/libese/include/ese/
Dese.h62 struct EseInterface;
65 struct EseInterface name = __ESE_INTIALIZER(HW_TYPE)
69 const char *ese_name(const struct EseInterface *ese);
70 int ese_open(struct EseInterface *ese, void *hw_opts);
71 void ese_close(struct EseInterface *ese);
72 int ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_bu…
74 bool ese_error(const struct EseInterface *ese);
75 const char *ese_error_message(const struct EseInterface *ese);
76 int ese_error_code(const struct EseInterface *ese);
Dese_hw_api.h33 struct EseInterface;
47 typedef uint32_t (ese_hw_receive_op_t)(struct EseInterface *, uint8_t *, uint32_t, int);
58 typedef uint32_t (ese_hw_transmit_op_t)(struct EseInterface *, const uint8_t *, uint32_t, int);
66 typedef int (ese_hw_reset_op_t)(struct EseInterface *);
84 typedef uint32_t (ese_transceive_op_t)(struct EseInterface *, const uint8_t *, uint32_t, uint8_t *,…
97 typedef int (ese_poll_op_t)(struct EseInterface *, uint8_t, float, int);
111 typedef int (ese_open_op_t)(struct EseInterface *, void *);
123 typedef void (ese_close_op_t)(struct EseInterface *);
169 struct EseInterface { struct
184 void ese_set_error(struct EseInterface *ese, int code); argument
/external/libese/libese/
Dese.c30 API const char *ese_name(const struct EseInterface *ese) { in ese_name()
40 API int ese_open(struct EseInterface *ese, void *hw_opts) { in ese_open()
51 API const char *ese_error_message(const struct EseInterface *ese) { in ese_error_message()
55 API int ese_error_code(const struct EseInterface *ese) { in ese_error_code()
59 API bool ese_error(const struct EseInterface *ese) { return ese->error.is_err; } in ese_error()
61 API void ese_set_error(struct EseInterface *ese, int code) { in ese_set_error()
84 API int ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, in ese_transceive()
108 API void ese_close(struct EseInterface *ese) { in ese_close()
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
Dcommon.h34 void nxp_pn80t_close(struct EseInterface *ese);
35 uint32_t nxp_pn80t_transceive(struct EseInterface *ese,
38 int nxp_pn80t_poll(struct EseInterface *ese, uint8_t poll_for, float timeout,
40 int nxp_pn80t_reset(struct EseInterface *ese);
41 int nxp_pn80t_open(struct EseInterface *ese, void *board);
/external/libese/libese-hw/
Dese_hw_fake.c42 static int fake_open(struct EseInterface *ese, in fake_open()
49 static void fake_close(struct EseInterface *ese) { in fake_close()
57 static uint32_t fake_receive(struct EseInterface *ese, uint8_t *buf, in fake_receive()
74 static uint32_t fake_transmit(struct EseInterface *ese, const uint8_t *buf, in fake_transmit()
91 static int fake_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, in fake_poll()
110 uint32_t fake_transceive(struct EseInterface *ese, const uint8_t *tx_buf, in fake_transceive()
Dese_hw_echo.c36 static int echo_open(struct EseInterface *ese, void *hw_opts) { in echo_open()
57 static void echo_close(struct EseInterface *ese) { in echo_close()
67 static uint32_t echo_receive(struct EseInterface *ese, uint8_t *buf, in echo_receive()
90 static uint32_t echo_transmit(struct EseInterface *ese, const uint8_t *buf, in echo_transmit()
112 static int echo_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, in echo_poll()
155 uint32_t echo_transceive(struct EseInterface *ese, const uint8_t *const tx_buf, in echo_transceive()
/external/libese/esed/pn81a/
Dpn81a.cpp26 void EseInterface::init() { in init()
27 mEse = new ::EseInterface; in init()
31 int EseInterface::open() { in open()
37 void EseInterface::close() { in close()
Dpn81a.h26 struct EseInterface : public ::android::esed::EseInterface { struct
27 ~EseInterface() { close(); } in ~EseInterface() argument
Dutils.h78 T transceive(::android::esed::EseInterface& ese, const CommandApdu& command,
/external/libese/esed/
Dlibese.h34 class EseInterface {
36 EseInterface() : mEse(nullptr) {} in EseInterface() function
37 virtual ~EseInterface() = default;
60 ::EseInterface* mEse;
Desed.cpp29 using EseInterfaceImpl = android::esed::pn81a::EseInterface;
/external/libese/libese/tests/
Dese_unittests.cpp31 struct EseInterface ese_;
46 struct EseInterface dummy = { in TEST_F()
60 struct EseInterface dummy = { in TEST_F()
78 struct EseInterface dummy = { in TEST_F()
118 struct EseInterface dummy = { in TEST_F()
/external/libese/libese-hw/nxp/pn80t/
Dcommon.c54 int nxp_pn80t_open(struct EseInterface *ese, void *board) { in nxp_pn80t_open()
99 int nxp_pn80t_reset(struct EseInterface *ese) { in nxp_pn80t_reset()
114 int nxp_pn80t_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, in nxp_pn80t_poll()
150 uint32_t nxp_pn80t_transceive(struct EseInterface *ese, in nxp_pn80t_transceive()
157 uint32_t nxp_pn80t_send_cooldown(struct EseInterface *ese) { in nxp_pn80t_send_cooldown()
174 void nxp_pn80t_close(struct EseInterface *ese) { in nxp_pn80t_close()
Dnq_nci.c102 uint32_t nq_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, in nq_transmit()
132 uint32_t nq_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, in nq_receive()
Dlinux_spidev.c177 uint32_t spidev_transmit(struct EseInterface *ese, const uint8_t *buf, in spidev_transmit()
206 uint32_t spidev_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, in spidev_receive()
/external/libese/
DREADME.md34 struct EseInterface my_ese = ESE_INITIALIZER(SOME_HAL_IMPL);
38 struct EseInterface *my_ese = malloc(sizeof(struct EseInterface));
64 The EseInterface is not safe for concurrent access.
/external/libese/libese-teq1/
Dteq1_private.h110 int teq1_transmit(struct EseInterface *ese,
113 int teq1_receive(struct EseInterface *ese,
Dteq1.c99 int teq1_transmit(struct EseInterface *ese, in teq1_transmit()
132 int teq1_receive(struct EseInterface *ese, in teq1_receive()
546 API uint32_t teq1_transceive(struct EseInterface *ese, in teq1_transceive()
/external/libese/tools/ese_relay/
Dese_relay.c35 void ese_relay_init(struct EseInterface *ese);
74 struct EseInterface ese; in main()
Dese_relay_fake.c27 void ese_relay_init(struct EseInterface *ese) { ese_init(ese, ESE_HW_FAKE); } in ese_relay_init()
Dese_relay_pn80t_nq_nci.c32 void ese_relay_init(struct EseInterface *ese) { in ese_relay_init()
Dese_relay_pn80t_spidev.c33 void ese_relay_init(struct EseInterface *ese) { in ese_relay_init()
/external/libese/libese-hw/tests/
Dese_hw_echo_tests.cpp39 struct EseInterface ese_;
/external/libese/esed/tests/
Dlibese.h29 struct MockEseInterface : public EseInterface {
/external/libese/examples/
Dese_nxp_sample.c84 struct EseInterface ese = ESE_INITIALIZER(ESE_HW_NXP_PN80T_NQ_NCI); in main()

12