LCOV - code coverage report
Current view: top level - uhallibs/test/apps - test-uhal-axi4lite.cxx (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 12 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 1 0

            Line data    Source code
       1              : /**
       2              : 
       3              : Simple uhal ipbus-over-axi4lite test
       4              : 
       5              : Minimal uhal test application to test
       6              : 
       7              : **/
       8              : 
       9              : #include "uhal/ConnectionManager.hpp"
      10              : 
      11              : #include "uhal/log/log.hpp"
      12              : 
      13              : #include <iostream>
      14              : 
      15              : int
      16            0 : main(int /* argc */, char const* /* argv[] */)
      17              : {
      18              : 
      19            0 :   uhal::setLogLevelTo(uhal::Debug());
      20              : 
      21            0 :   uhal::ConnectionManager cm("file://${UHALLIBS_SHARE}/config/c.xml", { "ipbusflx-2.0", "ipbusaxi4lite-2.0" });
      22              : 
      23            0 :   uhal::HwInterface u50 = cm.getDevice("u50-axi4lite-xdma");
      24              : 
      25            0 :   u50.getNode("reg").write(0xbbbb);
      26            0 :   u50.dispatch();
      27            0 :   auto v = u50.getNode("reg").read();
      28            0 :   u50.dispatch();
      29              : 
      30            0 :   std::cout << "hex(v) " << std::hex << v << std::endl;
      31              : 
      32            0 :   std::cout << "Done " << std::endl;
      33              :   /* code */
      34            0 :   return 0;
      35            0 : }
        

Generated by: LCOV version 2.0-1