1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright (c) 2021 Takashi Sakamoto
//! Protocol implementation for FW-1804.
//!
//! The module includes protocol implementation defined by Tascam for FW-1804.
//!
//! The protocol implementation for Tascam FW-1804 was written with firmware version below:
//!
//! ```text
//! $ cargo run --bin tascam-hardware-information /dev/fw1
//!
//! Hardware information:
//! Register: 0x00020014
//! FPGA: 0x00010031
//! ARM: 0x000100b7
//! Hardware: 0x00060000
//! ```
//!
//! ## Diagram of internal signal flow
//!
//! ```text
//!
//! andlog-input-0/1 ------+---------------------+--------> stream-output-0/1
//! andlog-input-2/3 ------|--+------------------|--------> stream-output-2/3
//! andlog-input-4/5 ------|--|--+---------------|--------> stream-output-4/5
//! andlog-input-6/7 ------|--|--|--+------------|--------> stream-output-6/7
//! coaxial-input-0/1 -----|--|--|--|------------|--------> stream-output-8/9
//! optical-input-0/1 -----|--|--|--|------------|--------> stream-output-10/11
//! optical-input-2/3 -----|--|--|--|------------|--------> stream-output-12/13
//! optical-input-4/5 -----|--|--|--|------------|--------> stream-output-14/15
//! optical-input-6/7 -----|--|--|--|------------|--------> stream-output-16/17
//! v v v v |
//! ++==========++ |
//! || monitor || |
//! ++==========++ |
//! | |
//! v |
//! ++==========++ |
//! stream-input-0/1 --> || mixer || --+------|--------> analog-output-0/1
//! ++==========++ | |
//! v |
//! stream-input-3/4 -------------> (one of) --|--+-----> coaxial-output-0/1
//! | |
//! v v
//! stream-input-5..11 ----------------------> (one of) --> optical-output-0..7
//! ```
use *;
/// The protocol implementation of FW-1804.
;