50 #include "hsk_ssc.isr" 76 #define SSC_MRST_P05 1 81 #define SSC_MRST_P14 0 86 #define SSC_MRST_P15 2 91 #define SSC_MTSR_P04 (1 << 2) 96 #define SSC_MTSR_P13 (0 << 2) 101 #define SSC_MTSR_P14 (2 << 2) 106 #define SSC_SCLK_P03 (1 << 4) 111 #define SSC_SCLK_P12 (0 << 4) 116 #define SSC_SCLK_P13 (2 << 4) 153 #define SSC_BAUD(bps) (uword)(12000000ul / (bps) - 1) 172 #define SSC_CONF(width, heading, phase, polarity, duplex) \ 173 (((width) - 1) | ((heading) << 4) | ((phase) << 5) | ((polarity) << 6) | ((duplex) << 7)) 189 void hsk_ssc_init(
const uword baud,
const ubyte config,
const bool mode);
229 #define hsk_ssc_busy() ESSC uword buffer[8]
A ring buffer of PWC values.
Definition: hsk_pwc.c:56
void hsk_ssc_talk(char *buffer, ubyte len)
Send and receive data.
Definition: hsk_ssc.c:262
void hsk_ssc_disable()
Turn the SSC module off.
Definition: hsk_ssc.c:286
void hsk_ssc_ports(const ubyte ports)
Configure the I/O ports of the SSC unit.
Definition: hsk_ssc.c:165
void hsk_ssc_enable()
Turn the SSC module on.
Definition: hsk_ssc.c:277
void hsk_ssc_init(const uword baud, const ubyte config, const bool mode)
The maximum baud rate in master mode is 12000000 bits/s, and 6000000 bits/s in slave mode...
Definition: hsk_ssc.c:115
static const struct @2 ports[]
External input configuration structure.