Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Programmable RF Attenuator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Programmable RF Attenuator
Commits
8a9f8dd6
Commit
8a9f8dd6
authored
Nov 05, 2021
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli: suppress string at end
parent
5a7fe1cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
89 deletions
+0
-89
oautest
software/lib/oautest
+0
-89
No files found.
software/lib/oautest
View file @
8a9f8dd6
...
...
@@ -154,92 +154,3 @@ if __name__ == '__main__':
cli
=
OauTest
()
cli
.
cmdloop_intr
()
if
False
:
"""
int oau_att_open(int lun);
int oau_att_close(int fd);
enum oau_att_value_enum oau_att_get_relay(int fd, int channel);
int oau_att_set_relay(int fd, int channel, enum oau_att_value_enum val);
int oau_att_get_nchannels(int fd);
extern const char * const liboau_att_version_s;
#ifndef __LIBOASIS_USB_ATT_H
#define __LIBOASIS_USB_ATT_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @enum oau_att_value_enum
* @brief Valid relay values
*
*/
enum oau_att_value_enum {
ATT_ERR = -1, /**< Error */
ATT_NONE = 0x0, /**< No attenuation */
ATT_1 = 0x01, /**< Attenuator 1: 20dB */
ATT_2 = 0x03, /**< Attenuator 1+2: 40dB */
};
/**
* @brief Open a msatt device
*
* A board is selected by lun, and a handle is returned for further
* reference to it.
*
* @param lun - LUN of msatt card
*
* @return >0 - on success, device file descriptor number
*/
int oau_att_open(int lun);
/**
* @brief close a channel handle
*
* @param fd Handle to close
*/
int oau_att_close(int fd);
/**
* @brief Get attenuation value for a given channel
*
* Each channel can be on one of these states:
* - No attenuation active (Relay value = 0x0)
* - 20dB attenuation (Relay value = 0x1)
* - 40dB attenuation (Relay value = 0x3)
*
* @param fd Device handle identifying board
* @param channel Channel [1,2,3,4] on the board to read from
*
* @return ATT_ERR on failure, another oau_att_value_enum value on success
*/
/**
* @brief Set attenuation value for a given channel
*
* @param fd Device handle identifying board
* @param channel Channel on the board [1,2,3,4]
* @param val Valid oau_att_value_enum relay value
*
* @return Upon successful completion, returns a value other than -1. On failure it returns -1
*/
/**
* @brief Gets the number of channels (2 or 4)
*
* @param fd Device handle identifying board
*
* @return -1 on fail, 2 for MSATTN2 and 4 for MSATTN4
*/
/* libmsatt version string */
#ifdef __cplusplus
}
#endif
#endif /* __LIBOASIS_USB_ATT_H */
"""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment