File mudaq_device.cpp

FileList > libmudaq > mudaq_device.cpp

Go to the source code of this file

  • #include "mudaq_device.h"
  • #include <fcntl.h>
  • #include <stdio.h>
  • #include <sys/ioctl.h>
  • #include <sys/mman.h>
  • #include <time.h>
  • #include <unistd.h>
  • #include <atomic>
  • #include <chrono>
  • #include <cmath>
  • #include <cstdint>
  • #include <cstring>
  • #include <ctime>
  • #include <fstream>
  • #include <iomanip>
  • #include <iostream>
  • #include <thread>

Namespaces

Type Name
namespace mudaq
namespace std

Public Functions

Type Name
void * align_page (void * pointer)
void * get_next_aligned_page (void * base_address)
int is_page_aligned (void * pointer)
int physical_address_check (uint32_t * base_address, size_t size)

Public Static Functions

Type Name
void _print_raw_buffer (volatile uint32_t * addr, unsigned len, unsigned block_offset=0)

Macros

Type Name
define PAGEMAP_LENGTH 8
define PAGE_SHIFT 12

Public Functions Documentation

function align_page

void * align_page (
    void * pointer
) 

function get_next_aligned_page

void * get_next_aligned_page (
    void * base_address
) 

function is_page_aligned

int is_page_aligned (
    void * pointer
) 

function physical_address_check

int physical_address_check (
    uint32_t * base_address,
    size_t size
) 

Check physical address of allocated memory for 32 bits / 36 bits


Public Static Functions Documentation

function _print_raw_buffer

static void _print_raw_buffer (
    volatile uint32_t * addr,
    unsigned len,
    unsigned block_offset=0
) 

Macro Definition Documentation

define PAGEMAP_LENGTH

#define PAGEMAP_LENGTH `8`

Author:

Moritz Kiehn kiehn@physi.uni-heidelberg.de

Author:

Heiko Augustin augustin.heiko@physi.uni-heidelberg.de

Author:

Lennart Huth huth@physi.uni-heidelberg.de

Date:

2013-11-14


define PAGE_SHIFT

#define PAGE_SHIFT `12`


The documentation for this class was generated from the following file midas_fe/libmudaq/mudaq_device.cpp