#include "boost/lexical_cast.hpp"#include "boost/algorithm/string.hpp"#include "pybind11/stl.h"#include "pybind11/pybind11.h"#include "uhal/ClientFactory.hpp"#include "uhal/ClientInterface.hpp"#include "uhal/ConnectionManager.hpp"#include "uhal/ProtocolControlHub.hpp"#include "uhal/ProtocolIPbus.hpp"#include "uhal/ProtocolTCP.hpp"#include "uhal/ProtocolUDP.hpp"#include "uhal/SigBusGuard.hpp"#include "uhal/Node.hpp"#include "uhal/tests/tools.hpp"#include "uhal/pycohal/enums_logging.hpp"#include "uhal/pycohal/exceptions.hpp"Go to the source code of this file.
Classes | |
| struct | pycohal::ValVectorIndexingSuite< T > |
| Struct containing wrapper functions for list-like indexing of ValVector<uint32_t> in python. More... | |
Namespaces | |
| namespace | pycohal |
Functions | |
| uint32_t | pycohal::defs_NOMASK () |
| template<class T > | |
| std::vector< T > | pycohal::copy_vector (const std::vector< T > &aVec) |
| Trivial function that returns copy of vector argument in order to test vector to/from list converters. [Function solely used in unit-tests]. More... | |
| template<class T > | |
| std::vector< T > | pycohal::convert_string_to_vector (const std::string &aString) |
| Returns vector, generated from splitting string argument using "," as delimeter, and converting string to type via lexical cast. [Function solely used in unit-tests]. More... | |
| template<> | |
| std::vector< std::string > | pycohal::convert_string_to_vector (const std::string &aString) |
| bool | pycohal::test_check_uint32_argument (uint32_t aUInt, const py::bytes &uIntString) |
| Returns whether uint32 and string arguments represent the same nubmer. Used in tests to check that uint32 arguments don't get altered at python-to-C boundary. More... | |
| uint32_t | pycohal::test_convert_str_to_uint32 (const std::string &uIntString) |
| Converts string argument to uint32_t, and returns this value. Used in tests to check that uint32 return values don't get altered at C-to-python boundary. More... | |
| uhal::ValWord< uint32_t > | pycohal::get_dummy_ValWord (const uint32_t aValue, const bool aValid) |
| Returns dummy ValWord instance for testing. More... | |
| void | pycohal::create_sigbus_buard () |
| void | pycohal::wrap_test_functions (py::module_ &aModule) |
| Wraps functions that are only sed in unti tests. Puts them in "tests" sub-module. More... | |
| std::shared_ptr< uhal::ClientInterface > | pycohal::buildClient (const std::string &aId, const std::string &aURI) |
| Constructs a ClientInterface using the ClientFactory. More... | |
| py::bytes | pycohal::hex_string (const uhal::ValWord< uint32_t > &valWord) |
| Returns hex string for ValWord<uint32_t> value. More... | |
| std::string | pycohal::convert_to_string (const uhal::ValWord< uint32_t > &valWord) |
| std::string | pycohal::convert_to_string (const uhal::ValVector< uint32_t > &valVec) |
| py::object const & | pass_through (py::object const &o) |
| const uhal::Node & | NextNodeConstIterator (uhal::Node::const_iterator &aIt) |
| PYBIND11_MODULE (_core, m) | |
Variables | |
| const auto | pycohal::const_ref_return_policy = py::return_value_policy::copy |
| Default return value policy for const references returned attribute 'getter' methods. More... | |
| const auto | pycohal::norm_ref_return_policy = py::return_value_policy::reference_internal |
| Return value policy for internal references. More... | |
| const uhal::Node & NextNodeConstIterator | ( | uhal::Node::const_iterator & | aIt | ) |
Definition at line 219 of file cactus_pycohal.cpp.
References uhal::Node::const_iterator::next().
Referenced by PYBIND11_MODULE().
|
inline |
Definition at line 214 of file cactus_pycohal.cpp.
Referenced by PYBIND11_MODULE().
| PYBIND11_MODULE | ( | _core | , |
| m | |||
| ) |
Definition at line 233 of file cactus_pycohal.cpp.
References uhal::Node::begin(), uhal::ValVector< T >::begin(), uhal::SigBusGuard::blockSIGBUS(), pycohal::buildClient(), uhal::ConnectionManager::clearAddressFileCache(), pycohal::const_ref_return_policy, pycohal::convert_to_string(), uhal::ValVector< T >::data(), pycohal::defs_NOMASK(), uhal::ClientInterface::dispatch(), uhal::HwInterface::dispatch(), uhal::Node::end(), uhal::ValVector< T >::end(), uhal::Node::getAddress(), uhal::HwInterface::getClient(), uhal::Node::getClient(), uhal::Node::getDescription(), uhal::ConnectionManager::getDevice(), uhal::ConnectionManager::getDevices(), uhal::Node::getFirmwareInfo(), uhal::Node::getId(), uhal::Node::getMask(), uhal::Node::getMode(), uhal::Node::getModule(), uhal::HwInterface::getNode(), uhal::Node::getNode(), uhal::HwInterface::getNodes(), uhal::Node::getNodes(), uhal::Node::getParameters(), uhal::Node::getPath(), uhal::Node::getPermission(), uhal::Node::getSize(), uhal::Node::getTags(), uhal::ClientInterface::getTimeoutPeriod(), uhal::HwInterface::getTimeoutPeriod(), uhal::HwInterface::hasNode(), uhal::Node::hasNode(), pycohal::hex_string(), uhal::ClientInterface::id(), uhal::HwInterface::id(), NextNodeConstIterator(), pycohal::norm_ref_return_policy, pass_through(), uhal::Node::read(), uhal::ClientInterface::read(), uhal::ClientInterface::readBlock(), uhal::Node::readBlock(), uhal::Node::readBlockOffset(), uhal::IPbusCore::readConfigurationSpace(), uhal::ClientInterface::rmw_bits(), uhal::ClientInterface::rmw_sum(), uhal::HwInterface::setTimeoutPeriod(), uhal::ClientInterface::setTimeoutPeriod(), uhal::ValVector< T >::size(), uhal::ClientInterface::uri(), uhal::HwInterface::uri(), uhal::ValHeader::valid(), uhal::ValVector< T >::valid(), pycohal::wrap_enums(), pycohal::wrap_exceptions(), pycohal::wrap_logging_functions(), pycohal::wrap_test_functions(), uhal::ClientInterface::write(), uhal::Node::write(), uhal::Node::writeBlock(), uhal::ClientInterface::writeBlock(), and uhal::Node::writeBlockOffset().