⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bin.h

📁 ECAN OOP implementation for TMS320 280x and x281x
💻 H
字号:
/*! \file bin.h
 */

#ifndef __BIN_HEADER__
#define __BIN_HEADER__

#include <c280xpcl\include\sys.h>

//
// class binarizer
//
class binarizer
{
public:
  typedef unsigned short  value_type;
  typedef unsigned short  size_type;
  typedef binarizer       self_type;

  binarizer(value_type* origin, size_type offset = 0);

  value_type operator *() const;
  self_type& operator=(value_type value);

  self_type& operator++();
  self_type  operator++(int);

  self_type& operator--();
  self_type  operator--(int);

  self_type  operator +(size_type n) const;
  self_type& operator+=(size_type n);

  self_type  operator -(size_type n) const;
  self_type& operator-=(size_type n);

protected:
  value_type* origin;
  size_type   offset;
};

#endif /* __BIN_HEADER__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -