summaryrefslogtreecommitdiff
path: root/openpicc/application
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-19 04:33:06 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-19 04:33:06 +0000
commit983595d22cf31a3002ed69d9c843922064f4cc4d (patch)
treefc31230571e2b80789c544ed1d615c0aab0276ca /openpicc/application
parent6cc8228e80ed010650078c34ba8711897dc75e57 (diff)
Move some definitions to header file
git-svn-id: https://svn.openpcd.org:2342/trunk@333 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
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