|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <ProtocolAxi4Lite.hpp>
Public Member Functions | |
| MappedFile (const std::string &aPath, size_t aLength, int aProtFlags=PROT_WRITE) | |
| ~MappedFile () | |
| const std::string & | getPath () const |
| void | setPath (const std::string &aPath) |
| void | setLength (size_t) |
| void | open () |
| Open bus file and map it to memory. | |
| void | close () |
| Unmap and close file. | |
| void | createBuffer (const size_t aNrBytes) |
| Create a local buffer. | |
| void | read (const uint32_t aAddr, const uint32_t aNrWords, std::vector< uint32_t > &aValues) |
| void | write (const uint32_t aAddr, const std::vector< uint32_t > &aValues) |
| void | write (const uint32_t aAddr, const uint8_t *const aPtr, const size_t aNrBytes) |
| void | write (const uint32_t aAddr, const std::vector< std::pair< const uint8_t *, size_t > > &aData) |
| bool | haveLock () const |
| void | lock () |
| void | unlock () |
Private Attributes | |
| std::string | mPath |
| int | mFd |
| uint32_t * | mBar |
| size_t | mLength |
| int | mProtFlags |
| bool | mLocked |
| size_t | mBufferSize |
| char * | mBuffer |
Definition at line 95 of file ProtocolAxi4Lite.hpp.
| uhallibs::Axi4Lite::MappedFile::MappedFile | ( | const std::string & | aPath, |
| size_t | aLength, | ||
| int | aProtFlags = PROT_WRITE ) |
Definition at line 22 of file ProtocolAxi4Lite.cpp.
| uhallibs::Axi4Lite::MappedFile::~MappedFile | ( | ) |
Definition at line 34 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::close | ( | ) |
Unmap and close file.
Definition at line 74 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::createBuffer | ( | const size_t | aNrBytes | ) |
Create a local buffer.
Definition at line 97 of file ProtocolAxi4Lite.cpp.
| const std::string & uhallibs::Axi4Lite::MappedFile::getPath | ( | ) | const |
Definition at line 42 of file ProtocolAxi4Lite.cpp.
| bool uhallibs::Axi4Lite::MappedFile::haveLock | ( | ) | const |
Definition at line 183 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::lock | ( | ) |
Definition at line 189 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::open | ( | ) |
Open bus file and map it to memory.
Definition at line 59 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::read | ( | const uint32_t | aAddr, |
| const uint32_t | aNrWords, | ||
| std::vector< uint32_t > & | aValues ) |
Definition at line 120 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::setLength | ( | size_t | aLength | ) |
Definition at line 53 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::setPath | ( | const std::string & | aPath | ) |
Definition at line 48 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::unlock | ( | ) |
Definition at line 206 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::write | ( | const uint32_t | aAddr, |
| const std::vector< std::pair< const uint8_t *, size_t > > & | aData ) |
Definition at line 152 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::write | ( | const uint32_t | aAddr, |
| const std::vector< uint32_t > & | aValues ) |
Definition at line 131 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::write | ( | const uint32_t | aAddr, |
| const uint8_t *const | aPtr, | ||
| const size_t | aNrBytes ) |
Definition at line 137 of file ProtocolAxi4Lite.cpp.
|
private |
Definition at line 132 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 137 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 136 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 131 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 133 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 135 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 130 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 134 of file ProtocolAxi4Lite.hpp.