Searched refs:ese (Results 1 - 25 of 31) sorted by relevance

12

/external/libese/libese/
H A Dese.c17 #include "include/ese/ese.h"
18 #include "include/ese/log.h"
30 API const char *ese_name(const struct EseInterface *ese) { argument
31 if (!ese) {
34 if (ese->ops->name) {
35 return ese->ops->name;
40 API int ese_open(struct EseInterface *ese, void *hw_opts) { argument
41 if (!ese) {
44 ALOGV("opening interface '%s'", ese_name(ese));
51 ese_error_message(const struct EseInterface *ese) argument
55 ese_error_code(const struct EseInterface *ese) argument
59 ese_error(const struct EseInterface *ese) argument
61 ese_set_error(struct EseInterface *ese, int code) argument
84 ese_transceive(struct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_max) argument
108 ese_close(struct EseInterface *ese) argument
[all...]
/external/libese/libese-hw/
H A Dese_hw_fake.c19 #include "../libese/include/ese/ese.h"
42 static int fake_open(struct EseInterface *ese, argument
44 ese->pad[0] = 1; /* rx complete */
45 ese->pad[1] = 1; /* tx complete */
49 static void fake_close(struct EseInterface *ese) { argument
50 if (!ese->pad[0] || !ese->pad[1]) {
51 /* Set by caller. ese->error.is_error = 1; */
52 ese_set_error(ese, kEseFakeHwErrorEarlyClos
57 fake_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, int complete) argument
74 fake_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, int complete) argument
91 fake_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
110 fake_transceive(struct EseInterface *ese, const uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_len) argument
[all...]
H A Dese_hw_echo.c23 #include "../libese-teq1/include/ese/teq1.h"
24 #include "../libese/include/ese/ese.h"
25 #include "../libese/include/ese/log.h"
34 #define ECHO_STATE(ese) (*(struct EchoState **)(&ese->pad[1]))
36 static int echo_open(struct EseInterface *ese, void *hw_opts) { argument
39 if (sizeof(ese->pad) < sizeof(struct EchoState *)) {
41 ALOGE("Pad size too small to use Echo HW (%zu < %zu)", sizeof(ese->pad),
45 es_ptr = &ECHO_STATE(ese);
57 echo_close(struct EseInterface *ese) argument
67 echo_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, int complete) argument
90 echo_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, int complete) argument
112 echo_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
155 echo_transceive(struct EseInterface *ese, const uint8_t *const tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_len) argument
[all...]
/external/libese/tools/ese_relay/
H A Dese_relay_fake.c19 #include <ese/ese.h>
27 void ese_relay_init(struct EseInterface *ese) { ese_init(ese, ESE_HW_FAKE); } argument
H A Dese_relay_pn80t_nq_nci.c18 #include <ese/ese.h>
32 void ese_relay_init(struct EseInterface *ese) { argument
33 ese_init(ese, ESE_HW_NXP_PN80T_NQ_NCI);
H A Dese_relay_pn80t_spidev.c18 #include <ese/ese.h>
19 #include <ese/hw/nxp/pn80t/boards/hikey-spidev.h>
33 void ese_relay_init(struct EseInterface *ese) { argument
34 ese_init(ese, ESE_HW_NXP_PN80T_SPIDEV);
H A Dese_relay.c28 #define LOG_TAG "ese-relay"
29 #include <ese/ese.h>
30 #include <ese/log.h>
35 void ese_relay_init(struct EseInterface *ese);
74 struct EseInterface ese; local
75 ese_relay_init(&ese);
101 if (ese_open(&ese, kEseOpenData)) {
103 if (ese_error(&ese))
104 ALOGE("eSE error (%d): %s", ese_error_code(&ese),
[all...]
/external/libese/libese/include/ese/
H A Dese.h21 #include "../../../libese-sysdeps/include/ese/sysdeps.h"
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_buf, uint32_t rx_max);
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);
H A Dese_hw_api.h20 #include "../../../libese-sysdeps/include/ese/sysdeps.h"
142 /* Used to receive raw data from the ese. */
144 /* Used to transmit raw data to the ese. */
184 void ese_set_error(struct EseInterface *ese, int code);
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/
H A Dcommon.h20 #include "../../libese-teq1/include/ese/teq1.h"
21 #include "../../libese/include/ese/ese.h"
22 #include "../../libese/include/ese/log.h"
31 #define NXP_PN80T_STATE(ese) \
32 ((struct NxpState *)(&ese->pad[ESE_INTERFACE_STATE_PAD / 2]))
34 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);
[all...]
/external/libese/libese-hw/nxp/pn80t/
H A Dcommon.c19 #include "include/ese/hw/nxp/pn80t/common.h"
54 int nxp_pn80t_open(struct EseInterface *ese, void *board) { argument
57 if (sizeof(ese->pad) < sizeof(struct NxpState *)) {
59 ALOGE("Pad size too small to use NXP HW (%zu < %zu)", sizeof(ese->pad),
63 platform = ese->ops->opts;
72 ns = NXP_PN80T_STATE(ese);
73 TEQ1_INIT_CARD_STATE((struct Teq1CardState *)(&ese->pad[0]));
77 ese_set_error(ese, kNxpPn80tErrorPlatformInit);
99 int nxp_pn80t_reset(struct EseInterface *ese) { argument
100 const struct Pn80tPlatform *platform = ese
114 nxp_pn80t_poll(struct EseInterface *ese, uint8_t poll_for, float timeout, int complete) argument
150 nxp_pn80t_transceive(struct EseInterface *ese, const uint8_t *const tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_len) argument
157 nxp_pn80t_send_cooldown(struct EseInterface *ese) argument
174 nxp_pn80t_close(struct EseInterface *ese) argument
[all...]
H A Dnq_nci.c26 * also appears to do the same which keeps the ese data available
47 #include "../include/ese/hw/nxp/pn80t/common.h"
102 uint32_t nq_transmit(struct EseInterface *ese, const uint8_t *buf, uint32_t len, argument
104 struct NxpState *ns = NXP_PN80T_STATE(ese);
105 const struct Pn80tPlatform *platform = ese->ops->opts;
109 ese_set_error(ese, kNxpPn80tErrorTransmitSize);
122 ese_set_error(ese, kNxpPn80tErrorTransmit);
132 uint32_t nq_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, argument
134 const struct Pn80tPlatform *platform = ese->ops->opts;
135 struct NxpState *ns = NXP_PN80T_STATE(ese);
[all...]
H A Dlinux_spidev.c30 #include "../include/ese/hw/nxp/pn80t/common.h"
31 #include "../include/ese/hw/nxp/spi_board.h"
177 uint32_t spidev_transmit(struct EseInterface *ese, const uint8_t *buf, argument
179 struct NxpState *ns = NXP_PN80T_STATE(ese);
193 ese_set_error(ese, kNxpPn80tErrorTransmitSize);
199 ese_set_error(ese, kNxpPn80tErrorTransmit);
206 uint32_t spidev_receive(struct EseInterface *ese, uint8_t *buf, uint32_t len, argument
208 struct NxpState *ns = NXP_PN80T_STATE(ese);
222 ese_set_error(ese, kNxpPn80tErrorReceiveSize);
229 ese_set_error(ese, kNxpPn80tErrorReceiv
[all...]
/external/libese/esed/
H A Desed.cpp45 EseInterfaceImpl ese; local
46 ese.init();
47 if (ese.open() < 0) {
49 if (ese.error()) {
50 errMsg += " (" + std::to_string(ese.error_code()) + "): " + ese.error_message();
H A Dlibese.h24 #include <ese/ese.h>
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/boards/
H A Dhikey-spidev.h18 #include <ese/hw/nxp/spi_board.h>
/external/libese/esed/pn81a/
H A Dpn81a.cpp19 #include <ese/ese.h>
H A Dutils.h78 T transceive(::android::esed::EseInterface& ese, const CommandApdu& command, argument
83 const int ret = ese.transceive(command.vector(), responseBuffer);
88 if (ese.error()) {
89 errMsg += " (" + std::to_string(ese.error_code()) + "): " + ese.error_message();
/external/libese/examples/
H A Dese_nxp_sample.c24 #include <ese/ese.h>
84 struct EseInterface ese = ESE_INITIALIZER(ESE_HW_NXP_PN80T_NQ_NCI); local
91 if (ese_open(&ese, ese_hw_open_data) < 0) {
93 if (ese_error(&ese))
94 printf("eSE error (%d): %s\n", ese_error_code(&ese),
95 ese_error_message(&ese));
109 recvd = ese_transceive(&ese, (uint8_t *)apdu->bytes, apdu->length, rx_buf,
111 if (ese_error(&ese)) {
112 printf("An error (%d) occurred: %s", ese_error_code(&ese),
[all...]
/external/libese/libese-hw/tests/
H A Dese_hw_echo_tests.cpp22 #include <ese/ese.h>
/external/libese/libese-teq1/
H A Dteq1.c17 #include "include/ese/teq1.h"
18 #include "../libese/include/ese/ese.h"
19 #include "../libese/include/ese/log.h"
99 int teq1_transmit(struct EseInterface *ese, argument
122 ese->ops->hw_transmit(ese, frame->val,
132 int teq1_receive(struct EseInterface *ese, argument
137 int bytes_consumed = ese->ops->poll(ese, opt
546 teq1_transceive(struct EseInterface *ese, const struct Teq1ProtocolOptions *opts, const uint8_t *const tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_len) argument
[all...]
H A Dteq1_private.h110 int teq1_transmit(struct EseInterface *ese,
113 int teq1_receive(struct EseInterface *ese,
/external/libese/libese/tests/
H A Dese_unittests.cpp17 #include <ese/ese.h>
/external/libese/libese-teq1/include/ese/
H A Dteq1.h24 #include "../../../libese/include/ese/ese.h"
25 #include "../../../libese/include/ese/bit_spec.h"
190 uint32_t teq1_transceive(struct EseInterface *ese,
/external/libese/libese-teq1/tests/
H A Dteq1_unittests.cpp24 #include <ese/ese.h>
25 #include <ese/teq1.h>
27 #include <ese/log.h>

Completed in 193 milliseconds

12