#include <IIOMMap.H>
Memory map multiple blocks for the IIO read subsystem.
Definition at line 65 of file IIOMMap.H.
◆ MMappedBlocks()
MMappedBlocks::MMappedBlocks |
( |
| ) |
|
|
inline |
◆ ~MMappedBlocks()
MMappedBlocks::~MMappedBlocks |
( |
| ) |
|
|
inline |
◆ allocate()
int MMappedBlocks::allocate |
( |
| ) |
|
|
inlineprivate |
Method to get the kernel to allocate memory blocks.
- Returns
- Returns <0 on error.
Definition at line 72 of file IIOMMap.H.
◆ deAllocate()
void MMappedBlocks::deAllocate |
( |
| ) |
|
|
inlineprivate |
Deallocate kernel space memory.
Definition at line 84 of file IIOMMap.H.
◆ memoryMap()
int MMappedBlocks::memoryMap |
( |
| ) |
|
|
inlineprivate |
Memory map the blocks to the device.
- Returns
- Returns !=0 on error.
Definition at line 92 of file IIOMMap.H.
◆ memoryUnmap()
void MMappedBlocks::memoryUnmap |
( |
| ) |
|
|
inlineprivate |
unmap memory blocks.
Definition at line 124 of file IIOMMap.H.
◆ reset() [1/2]
int MMappedBlocks::reset |
( |
int |
fdIn | ) |
|
|
inline |
Setup the mmap blocks. Uses DEFAULT_BLOCK_COUNT and DEFAULT_BLOCK_SIZE for the count and size respectively.
- Parameters
-
fdIn | The open file descriptor of the IIO device to be read from. |
- Returns
- NO_ERROR or appropriate error
Definition at line 151 of file IIOMMap.H.
◆ reset() [2/2]
int MMappedBlocks::reset |
( |
int |
fdIn, |
|
|
int |
count, |
|
|
int |
size |
|
) |
| |
|
inline |
Setup the mmap blocks
- Parameters
-
fdIn | The open file descriptor of the IIO device to be read from. |
count | The number of blocks to use. |
size | The size of each block (in bytes). |
- Returns
- NO_ERROR or appropriate error
Definition at line 161 of file IIOMMap.H.
◆ blocks
vector<struct block> MMappedBlocks::blocks |
The block information and address.
Definition at line 131 of file IIOMMap.H.
◆ fd
The file descriptior of the device.
Definition at line 66 of file IIOMMap.H.
◆ req
The documentation for this class was generated from the following file: