Skip to content
Snippets Groups Projects
Select Git revision
  • 03a49b859f6b9fc3ab9d6bbcbd5fb92cd41059ab
  • master default protected
  • fix-64-bit
  • L2SDP-261
  • 2021-04-14T14.09.01_sdptr
  • 2021-04-14T13.43.34_sdptr
6 results

fpga.h

Blame
  • Forked from LOFAR2.0 / sdptr
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    fpga.h 1.84 KiB
    /* *************************************************************************
    * Copyright 2020
    * ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
    * P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    * *********************************************************************** */
    
    /* *************************************************************************
    * Author:
    * . Leon Hiemstra
    * . Pieter Donker
    * Purpose:
    * . opc-ua to ucp translator
    * Description:
    * . class with fpga registers available for opc-ua server
    * *********************************************************************** */
    
    #ifndef FPGA__H
    #define FPGA__H 1
    
    #include <string>
    #include <vector>
    #include <list>
    
    #include "node.h"
    #include "tools/util.h"
    #include "registers.h"
    
    
    class Fpga
    {
    private:
        std::list<class Node*> FPGA;
        PointMapClass *pointMap;
    
    public:
        Fpga(std::list<class Node*>& nodelist);
        ~Fpga();
    
        bool point(const uint clientId, TermOutput& termout, const char cmd, const std::string addr, 
                   const unsigned int *data, CMData& cm, const int len);
        
        Node * select_node(const int nr);
        std::vector<int> get_all_nodes(void);
        std::vector<bool> get_all_enabled_nodes(void);
        PointMapClass * get_pointMap(void);
        uint node_number(Node *node);
        bool is_fpga(const std::string addr);
    };
    #endif