Revision b96088b6 host/lib/usrp/usrp1/usrp1_ctrl.hpp
| b/host/lib/usrp/usrp1/usrp1_ctrl.hpp | ||
|---|---|---|
| 50 | 50 |
virtual int usrp_load_fpga(std::string filename) = 0; |
| 51 | 51 |
|
| 52 | 52 |
/*! |
| 53 |
* Load USB descriptor file in Intel HEX format into EEPROM |
|
| 54 |
* \param filename name of EEPROM image |
|
| 55 |
* \return 0 on success, error code otherwise |
|
| 56 |
*/ |
|
| 57 |
virtual int usrp_load_eeprom(std::string filestring) = 0; |
|
| 58 |
|
|
| 59 |
/*! |
|
| 53 | 60 |
* Set led usrp |
| 54 | 61 |
* \param led_num which LED to control (0 or 1) |
| 55 | 62 |
* \param on turn LED on or off |
| ... | ... | |
| 127 | 134 |
unsigned char *buff, |
| 128 | 135 |
boost::uint16_t length) = 0; |
| 129 | 136 |
|
| 137 |
/*! |
|
| 138 |
* Perform an I2C write |
|
| 139 |
* \param i2c_addr I2C device address |
|
| 140 |
* \param buf data to be written |
|
| 141 |
* \param len length of data in bytes |
|
| 142 |
* \return number of bytes written or error |
|
| 143 |
*/ |
|
| 144 |
|
|
| 145 |
virtual int usrp_i2c_write(boost::uint16_t i2c_addr, |
|
| 146 |
unsigned char *buf, |
|
| 147 |
boost::uint16_t len) = 0; |
|
| 148 |
|
|
| 149 |
/*! |
|
| 150 |
* Perform an I2C read |
|
| 151 |
* \param i2c_addr I2C device address |
|
| 152 |
* \param buf data to be read |
|
| 153 |
* \param len length of data in bytes |
|
| 154 |
* \return number of bytes read or error |
|
| 155 |
*/ |
|
| 156 |
|
|
| 157 |
virtual int usrp_i2c_read(boost::uint16_t i2c_addr, |
|
| 158 |
unsigned char *buf, |
|
| 159 |
boost::uint16_t len) = 0; |
|
| 160 |
|
|
| 130 | 161 |
}; |
| 131 | 162 |
|
| 132 | 163 |
#endif /* INCLUDED_USRP_CTRL_HPP */ |
Also available in: Unified diff