Loading...
Searching...
No Matches
xor_blk.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2012,2018 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef XOR_BLK_H
#define XOR_BLK_H
#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
#include <cstdint>
namespace gr {
namespace blocks {
/*!
* \brief output = input_0 ^ input_1 ^ , ... ^ input_N)
* \ingroup boolean_operators_blk
*
* Bitwise boolean xor across all input streams.
*/
template <class T>
class BLOCKS_API xor_blk : virtual public sync_block
{
public:
// gr::blocks::xor::sptr
typedef std::shared_ptr<xor_blk<T>> sptr;
static sptr make(size_t vlen = 1);
};
typedef xor_blk<std::uint8_t> xor_bb;
typedef xor_blk<std::int16_t> xor_ss;
typedef xor_blk<std::int32_t> xor_ii;
} /* namespace blocks */
} /* namespace gr */
#endif /* XOR_BLK_H */
gr::blocks::xor_blk
output = input_0 ^ input_1 ^ , ... ^ input_N)
Definition xor_blk.h:30
gr::blocks::xor_blk::make
static sptr make(size_t vlen=1)
gr::blocks::xor_blk::sptr
std::shared_ptr< xor_blk< T > > sptr
Definition xor_blk.h:33
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
BLOCKS_API
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
gr::blocks
Definition abs_blk.h:20
gr::blocks::xor_ii
xor_blk< std::int32_t > xor_ii
Definition xor_blk.h:40
gr::blocks::xor_ss
xor_blk< std::int16_t > xor_ss
Definition xor_blk.h:39
gr::blocks::xor_bb
xor_blk< std::uint8_t > xor_bb
Definition xor_blk.h:38
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h