#include <sfp.h>
|
typedef m_obj_children_t::const_iterator | child_iterator |
|
typedef std::map< std::string, std::string > | create_args_t |
|
typedef Object *(* | create_factory_t) (const std::string &name, const std::string &klass, const create_args_t &args) |
|
static int | initObject () |
|
static Object * | getObject (const std::string &name) |
|
static Object * | getCreateObject (const std::string &name, const std::string &klass, const create_args_t &args=create_args_t()) |
|
static void | addFactory (const std::string &klass, create_factory_t fn) |
|
static void | visitObjects (bool(*)(Object *, void *), void *) |
|
| ObjectInst (const std::string &n) |
|
| ObjectInst (const std::string &n, A &a) |
|
virtual | ~ObjectInst () |
|
| Object (const std::string &n, const Object *par=0) |
|
virtual | ~Object ()=0 |
|
Definition at line 16 of file sfp.h.
◆ SFP()
SFP::SFP |
( |
const std::string & |
n, |
|
|
volatile unsigned char * |
reg |
|
) |
| |
Definition at line 31 of file sfp.cpp.
41 fprintf(stderr,
"Found SFP EEPROM\n");
43 fprintf(stderr,
"Found SFP Strangeness %02x%02x%02x%02x\n",
44 buffer[0],buffer[1],buffer[2],buffer[3]);
void updateNow(bool=true)
◆ ~SFP()
◆ junk()
Definition at line 31 of file sfp.h.
◆ linkSpeed()
double SFP::linkSpeed |
( |
| ) |
const |
◆ lock()
virtual void SFP::lock |
( |
| ) |
const |
|
inlinevirtual |
◆ manuDate()
std::string SFP::manuDate |
( |
| ) |
const |
Definition at line 128 of file sfp.cpp.
131 return std::string(nomod);
132 std::string ret(
"20XX/XX");
◆ powerRX()
double SFP::powerRX |
( |
| ) |
const |
◆ powerTX()
double SFP::powerTX |
( |
| ) |
const |
◆ report()
void SFP::report |
( |
| ) |
const |
Definition at line 140 of file sfp.cpp.
142 printf(
"SFP tranceiver information\n" 144 " Link: %.1f MBits/s\n" 145 " Tx Power: %.1f uW\n" 146 " Rx Power: %.1f uW\n",
151 printf(
" Vendor:%s\n Model: %s\n Rev: %s\n Manufacture date: %s\n Serial: %s\n",
double temperature() const
std::string vendorPart() const
std::string vendorName() const
std::string vendorRev() const
std::string manuDate() const
std::string serial() const
◆ serial()
std::string SFP::serial |
( |
| ) |
const |
Definition at line 120 of file sfp.cpp.
123 return std::string(nomod);
124 buffer_t::const_iterator it=buffer.begin()+
SFP_serial;
125 return std::string(it, it+16);
◆ temperature()
double SFP::temperature |
( |
| ) |
const |
◆ unlock()
virtual void SFP::unlock |
( |
| ) |
const |
|
inlinevirtual |
◆ updateNow()
void SFP::updateNow |
( |
bool |
= true | ) |
|
Definition at line 49 of file sfp.cpp.
54 epicsUInt32* p32=(epicsUInt32*)&buffer[0];
59 valid = buffer[0]==3 && buffer[2]==7;
◆ vendorName()
std::string SFP::vendorName |
( |
| ) |
const |
Definition at line 96 of file sfp.cpp.
99 return std::string(nomod);
101 return std::string(it, it+16);
◆ vendorPart()
std::string SFP::vendorPart |
( |
| ) |
const |
Definition at line 104 of file sfp.cpp.
107 return std::string(nomod);
108 buffer_t::const_iterator it=buffer.begin()+
SFP_part_num;
109 return std::string(it, it+16);
◆ vendorRev()
std::string SFP::vendorRev |
( |
| ) |
const |
Definition at line 112 of file sfp.cpp.
115 return std::string(nomod);
116 buffer_t::const_iterator it=buffer.begin()+
SFP_part_rev;
117 return std::string(it, it+4);
The documentation for this class was generated from the following files: