Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

PIC14 Class Reference

#include <pic14.h>

List of all members.


Detailed Description

Author:
Daniel Clarke

David Saxton

Definition at line 70 of file pic14.h.


Public Types

enum  DelaySubroutine {
  Delay_None = 0, Delay_3uS = 1, Delay_768uS = 2, Delay_200mS = 3,
  Delay_50S = 4
}
enum  LocationType { num = 1, work = 2, var = 3 }
enum  Type {
  P16C84, P16F84, P16F627, P16F628,
  unknown
}

Public Member Functions

void add (QString val1, QString val2, LocationType val1Type, LocationType val2Type)
void addCommonFunctions (DelaySubroutine delay)
void assignNum (const QString &val)
void assignVar (const QString &val)
void bitwise (Expression::Operation op, const QString &val1, const QString &val2, bool val1IsNum, bool val2IsNum)
void div (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
CodeelseCode ()
void equal (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
uchar gprStart () const
void greaterOrEqual (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
void greaterThan (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
CodeifCode ()
bool isValidInterrupt (const QString &interruptName) const
bool isValidPort (const QString &portName) const
bool isValidPortPin (const PortPin &portPin) const
bool isValidTris (const QString &trisName) const
void lessOrEqual (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
void lessThan (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
void mergeCode (Code *code)
QString minimalTypeString () const
void mul (QString val1, QString val2, LocationType val1Type, LocationType val2Type)
void notEqual (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
 PIC14 (Microbe *master, Type type)
void postCompileConstruct (const QStringList &interrupts)
void Sasm (const QString &raw)
void saveResultToVar (const QString &var)
void saveToReg (const QString &dest)
void Scall (const QString &name)
void SdecVar (const QString &var)
void Sdelay (unsigned length_us, Code::InstructionPosition pos=Code::Middle)
void Send ()
void setCode (Code *code)
void setConditionalCode (Code *ifCode, Code *elseCode)
void setParser (Parser *parser)
void Sfor (Code *forCode, Code *initCode, const QString &expression, const QString &variable, const QString &step, bool stepPositive)
void Sgoto (const QString &label)
void Sif (Code *ifCode, Code *elseCode, const QString &expression)
void SincVar (const QString &var)
void Sinterrupt (const QString &procName, Code *compiledProcCode)
void Skeypad (const Variable &pinMap)
void Slabel (const QString &label)
void Spin (const PortPin &portPin, bool NOT)
void Srepeat (Code *repeatCode, const QString &expression)
void SrotlVar (const QString &var)
void SrotrVar (const QString &var)
void Ssetlh (const PortPin &portPin, bool high)
void SsevenSegment (const Variable &pinMap)
void Ssubroutine (const QString &procName, Code *compiledProcCode)
void Stristate (const QString &port)
void subtract (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
void Swhile (Code *whileCode, const QString &expression)
PortPin toPortPin (const QString &portPinString)
Type type () const

Static Public Member Functions

static Type toType (const QString &text)

Public Attributes

Codem_elseCode
Codem_ifCode

Protected Member Functions

void divide ()
void ifInitCode (const QString &val1, const QString &val2, LocationType val1Type, LocationType val2Type)
int interruptNameToBit (const QString &name, bool flag)
void multiply ()
void rearrangeOpArguments (QString *val1, QString *val2, LocationType *val1Type, LocationType *val2Type)

Protected Attributes

Parserm_parser
Codem_pCode
Type m_type
Microbemb

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index