File: progalg.h

package info (click to toggle)
xc3sprog 0%2Bsvn795%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 8,800 kB
  • sloc: cpp: 15,983; ansic: 849; vhdl: 410; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Base class for programming algorithms */

#ifndef PROGALG_H
#define PROGALG_H

#include "bitfile.h"


class ProgAlg
{
 protected:
  ProgAlg() { }
 public:
  virtual ~ProgAlg() { }
  virtual unsigned int getSize() const = 0;
  virtual int erase() = 0;
  virtual int program(BitFile &file) = 0;
  virtual int verify(BitFile &file) = 0;
  virtual int read(BitFile &file) = 0;
  virtual void reconfig() = 0;
  virtual void disable() = 0;
};

#endif //PROGALG_H