1 ;; -*- scheme -*- ; not really, but tells emacs how to format this
3 ;; Copyright 2007 Free Software Foundation, Inc.
5 ;; This file is part of GNU Radio
7 ;; GNU Radio is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 2, or (at your option)
12 ;; GNU Radio is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
17 ;; You should have received a copy of the GNU General Public License along
18 ;; with this program; if not, write to the Free Software Foundation, Inc.,
19 ;; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 ;; ----------------------------------------------------------------
23 ;; This is an mblock header file
25 ;; The format is very much a work-in-progress.
26 ;; It'll be compiled to C++.
27 ;; ----------------------------------------------------------------
29 ;; ----------------------------------------------------------------
32 ;; Handles interaction between the usrp_sever and the USB interface
34 (define-protocol-class usrp-interface-cs
37 (cmd-usrp-open invocation-handle which-usrp)
38 (cmd-usrp-close invocation-handle)
39 (cmd-usrp-ntx-chan invocation-handle)
40 (cmd-usrp-nrx-chan invocation-handle)
41 (cmd-usrp-write invocation-handle channel data)
42 (cmd-usrp-start-reading invocation-handle channel)
46 (response-usrp-open invocation-handle status)
47 (response-usrp-close invocation-handle status)
48 (response-usrp-ntx-chan invocation-handle ntx-chan)
49 (response-usrp-nrx-chan invocation-handle nrx-chan)
50 (response-usrp-write invocation-handle status channel)
51 (response-usrp-read invocation-handle status data)
55 ;; ----------------------------------------------------------------
58 ;; Handles interaction between the USB interface and TX interface
60 (define-protocol-class usrp-tx-cs
63 (cmd-usrp-tx-write invocation-handle channel data tx-handle)
67 (response-usrp-tx-write invocation-handle status channel)
71 ;; ----------------------------------------------------------------
74 ;; Handles interaction between the USB interface and RX interface
76 (define-protocol-class usrp-rx-cs
79 (cmd-usrp-rx-start-reading invocation-handle rx-handle)
80 (cmd-usrp-rx-stop-reading invocation-handle)
84 (response-usrp-rx-read invocation-handle status data)
86 ;; There is currently no response to a stop reading