|
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 97 of file ProtocolAxi4Lite.hpp.
| uhallibs::Axi4Lite::MappedFile::MappedFile | ( | const std::string & | aPath, |
| size_t | aLength, | ||
| int | aProtFlags = PROT_WRITE ) |
Definition at line 23 of file ProtocolAxi4Lite.cpp.
| uhallibs::Axi4Lite::MappedFile::~MappedFile | ( | ) |
Definition at line 33 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::close | ( | ) |
Unmap and close file.
Definition at line 55 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::createBuffer | ( | const size_t | aNrBytes | ) |
Create a local buffer.
Definition at line 70 of file ProtocolAxi4Lite.cpp.
| const std::string & uhallibs::Axi4Lite::MappedFile::getPath | ( | ) | const |
Definition at line 38 of file ProtocolAxi4Lite.cpp.
| bool uhallibs::Axi4Lite::MappedFile::haveLock | ( | ) | const |
Definition at line 148 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::lock | ( | ) |
Definition at line 150 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::open | ( | ) |
Open bus file and map it to memory.
Definition at line 43 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 92 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::setLength | ( | size_t | aLength | ) |
Definition at line 41 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::setPath | ( | const std::string & | aPath | ) |
Definition at line 40 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::unlock | ( | ) |
| void uhallibs::Axi4Lite::MappedFile::write | ( | const uint32_t | aAddr, |
| const std::vector< std::pair< const uint8_t *, size_t > > & | aData ) |
Definition at line 119 of file ProtocolAxi4Lite.cpp.
| void uhallibs::Axi4Lite::MappedFile::write | ( | const uint32_t | aAddr, |
| const std::vector< uint32_t > & | aValues ) |
Definition at line 101 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 106 of file ProtocolAxi4Lite.cpp.
|
private |
Definition at line 137 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 142 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 141 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 136 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 138 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 140 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 135 of file ProtocolAxi4Lite.hpp.
|
private |
Definition at line 139 of file ProtocolAxi4Lite.hpp.