summaryrefslogtreecommitdiff
path: root/openpicc/application
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/application')
-rw-r--r--openpicc/application/ssc_picc.c9
-rw-r--r--openpicc/application/ssc_picc.h11
2 files changed, 11 insertions, 9 deletions
diff --git a/openpicc/application/ssc_picc.c b/openpicc/application/ssc_picc.c
index 9818296..f1eeef4 100644
--- a/openpicc/application/ssc_picc.c
+++ b/openpicc/application/ssc_picc.c
@@ -50,15 +50,6 @@
static const AT91PS_SSC ssc = AT91C_BASE_SSC;
static AT91PS_PDC rx_pdc;
-enum ssc_mode {
- SSC_MODE_NONE,
- SSC_MODE_14443A_SHORT,
- SSC_MODE_14443A_STANDARD,
- SSC_MODE_14443B,
- SSC_MODE_EDGE_ONE_SHOT,
- SSC_MODE_CONTINUOUS,
-};
-
struct ssc_state {
struct req_ctx *rx_ctx[2];
enum ssc_mode mode;
diff --git a/openpicc/application/ssc_picc.h b/openpicc/application/ssc_picc.h
index a9c87b7..0ba15d0 100644
--- a/openpicc/application/ssc_picc.h
+++ b/openpicc/application/ssc_picc.h
@@ -12,4 +12,15 @@ extern void ssc_fini(void);
extern void ssc_rx_stop(void);
extern void ssc_rx_unthrottle(void);
+enum ssc_mode {
+ SSC_MODE_NONE,
+ SSC_MODE_14443A_SHORT,
+ SSC_MODE_14443A_STANDARD,
+ SSC_MODE_14443B,
+ SSC_MODE_EDGE_ONE_SHOT,
+ SSC_MODE_CONTINUOUS,
+};
+
+extern void ssc_rx_mode_set(enum ssc_mode ssc_mode);
+
#endif
personal git repositories of Harald Welte. Your mileage may vary