summaryrefslogtreecommitdiffstats
path: root/Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h
diff options
context:
space:
mode:
authorTom2011-06-17 18:21:43 +0200
committerTom2011-06-17 18:21:43 +0200
commit8abd9a968f1aaea16239b1de7d627fb54160257f (patch)
treef9e28f25a0e4561c9dd3a1d6b5ba51e6e6954d46 /Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h
parentinitial commit .. (diff)
downloadimsi-catcher-detection-8abd9a968f1aaea16239b1de7d627fb54160257f.tar.gz
imsi-catcher-detection-8abd9a968f1aaea16239b1de7d627fb54160257f.tar.xz
imsi-catcher-detection-8abd9a968f1aaea16239b1de7d627fb54160257f.zip
Initial Commit
Diffstat (limited to 'Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h')
-rw-r--r--Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h b/Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h
new file mode 100644
index 0000000..d58a562
--- /dev/null
+++ b/Src/osmocom-bb/src/target/firmware/include/calypso/tsp.h
@@ -0,0 +1,31 @@
+#ifndef _CALYPSO_TSP_H
+#define _CALYPSO_TSP_H
+
+#define TSPACT(x) (1 << x)
+#define TSPEN(x) (x)
+
+/* initiate a TSP write through the TPU */
+void tsp_write(uint8_t dev_idx, uint8_t bitlen, uint32_t dout);
+
+/* Configure clock edge and chip enable polarity for a device */
+void tsp_setup(uint8_t dev_idx, int clk_rising, int en_positive, int en_edge);
+
+/* Obtain the current tspact state */
+uint16_t tsp_act_state(void);
+
+/* Update the TSPACT state, including enable and disable */
+void tsp_act_update(uint16_t new_act);
+
+/* Enable one or multiple TSPACT signals */
+void tsp_act_enable(uint16_t bitmask);
+
+/* Disable one or multiple TSPACT signals */
+void tsp_act_disable(uint16_t bitmask);
+
+/* Toggle one or multiple TSPACT signals */
+void tsp_act_toggle(uint16_t bitmask);
+
+/* Initialize TSP driver */
+void tsp_init(void);
+
+#endif /* _CALYPSO_TSP_H */