Line 77... |
Line 77... |
77 |
{ |
77 |
{ |
78 |
output_low(TDC_ENABLE); |
78 |
output_low(TDC_ENABLE); |
79 |
spi_xfer(TDC_stream,0x81,8); |
79 |
spi_xfer(TDC_stream,0x81,8); |
80 |
spi_xfer(TDC_stream,0x224000,24); |
80 |
spi_xfer(TDC_stream,0x224000,24); |
81 |
output_high(TDC_ENABLE); |
81 |
output_high(TDC_ENABLE); |
82 |
} |
- |
|
83 |
|
82 |
|
84 |
void TDC_setup_reg2() |
- |
|
85 |
{ |
- |
|
86 |
output_low(TDC_ENABLE); |
83 |
output_low(TDC_ENABLE); |
87 |
spi_xfer(TDC_stream,0xB1); |
84 |
spi_xfer(TDC_stream,0xB1); |
88 |
output_high(TDC_ENABLE); |
85 |
output_high(TDC_ENABLE); |
89 |
} |
- |
|
90 |
|
86 |
|
91 |
void TDC_setup_reg3() |
- |
|
92 |
{ |
- |
|
93 |
output_low(TDC_ENABLE); |
87 |
output_low(TDC_ENABLE); |
94 |
spi_xfer(TDC_stream,0xB2); |
88 |
spi_xfer(TDC_stream,0xB2); |
95 |
output_high(TDC_ENABLE); |
89 |
output_high(TDC_ENABLE); |
96 |
} |
- |
|
97 |
|
90 |
|
98 |
void TDC_setup_reg4() |
- |
|
99 |
{ |
- |
|
100 |
output_low(TDC_ENABLE); |
91 |
output_low(TDC_ENABLE); |
101 |
spi_xfer(TDC_stream,0xB3); |
92 |
spi_xfer(TDC_stream,0xB3); |
102 |
output_high(TDC_ENABLE); |
93 |
output_high(TDC_ENABLE); |
103 |
} |
- |
|
104 |
|
94 |
|
105 |
void TDC_setup_reg5() |
- |
|
106 |
{ |
- |
|
107 |
output_low(TDC_ENABLE); |
95 |
output_low(TDC_ENABLE); |
108 |
spi_xfer(TDC_stream,0xB4); |
96 |
spi_xfer(TDC_stream,0xB4); |
109 |
output_high(TDC_ENABLE); |
97 |
output_high(TDC_ENABLE); |
110 |
} |
98 |
} |