+/**
+ * Set logic level for load signal
+ */
+#define SIPO_SET_LD_LEVEL(device, load_pol) \
+ do { \
+ (void)device; \
+ if(load_pol) \
+ SLOAD_OUT_HIGH; \
+ else \
+ SLOAD_OUT_LOW; \
+ } while (0)
+
+
+/**
+ * Sel logic level for clock signal
+ */
+#define SIPO_SET_CLK_LEVEL(clock_pol) \
+ do { \
+ if(clock_pol) \
+ SCK_HIGH; \
+ else \
+ SCK_LOW; \
+ } while (0)
+
+#define SIPO_SET_SI_LEVEL() SIPO_SI_LOW()