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: 2025-12-21 13:07:08 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            0 : int main(int /* argc */, char const * /* argv[] */)
      16              : {
      17              : 
      18            0 :     uhal::setLogLevelTo(uhal::Debug());
      19              : 
      20            0 :     uhal::ConnectionManager cm("file://${UHALLIBS_SHARE}/config/c.xml", {"ipbusflx-2.0", "ipbusaxi4lite-2.0"});
      21              : 
      22            0 :     uhal::HwInterface u50 = cm.getDevice("u50-axi4lite-xdma");
      23              : 
      24            0 :     u50.getNode("reg").write(0xbbbb);
      25            0 :     u50.dispatch();
      26            0 :     auto v = u50.getNode("reg").read();
      27            0 :     u50.dispatch();
      28              : 
      29            0 :     std::cout << "hex(v) " << std::hex << v << std::endl;
      30              : 
      31              : 
      32              : 
      33            0 :     std::cout << "Done " << std::endl;
      34              :     /* code */
      35            0 :     return 0;
      36            0 : }
        

Generated by: LCOV version 2.0-1