# [FUNCTIONS] - Defines functions exported on the device
# Syntax is: funcName = Extended Attribute, Normal Attribute
# Extended Attributes:
# FUNCEXT (functions supports streams)
# FUNCNONE
# Normal Attributes:
# FUNCINBIT (input is a bit value)
# FUNCINBYTE (input is a one-byte Value)
# FUNCINDOUBLE (input is a double precision floating-point value)
# FUNCINDWORD (input is a four-byte value)
# FUNCINFLOAT (input is a floating-point value)
# FUNCINNONE (no input)
# FUNCINSTREAM (input is a stream of data)
# FUNCINSTRING (input is a one-byte character array)
# FUNCINUSTRING (input is a two-byte unicode character array)
# FUNCINWORD (input is a two-byte value)
# FUNCINWSTRING (input is a two-byte wide character array)
# FUNCRETBIT (returns a bit value)
# FUNCRETBYTE (returns a one-byte value)
# FUNCRETDOUBLE (returns a double precision floating point value)
# FUNCRETDWORD (returns a four-byte value)
# FUNCRETFLOAT (returns a floating-point value)
# FUNCRETNONE (does not return anything)
# FUNCRETSTREAM (returns a stream of data)
# FUNCRETSTRING (returns a one-byte character array)
# FUNCRETUSTRING (returns a two-byte unicode character array)
# FUNCRETWORD (returns a two-byte value)
# FUNCRETWSTRING (returns a two-byte wide character array)
# Normal Attributes can be combined by ORing the keywords:
# funcName = FUNCNONE, FUNCINBYTE | FUNCRETWORD
[FUNCTIONS]
Peek = FUNCNONE,FUNCINBYTE
Poke = FUNCNONE,FUNCINBYTE
#
# [VARS] - Defines variables exported on the device
# Syntax is: varName = Extended Attribute, Normal Attribute
# Extended Attributes:
# VARARRAY
# VARNONE
# VARNV
# VARTOKEN
# Extended Attributes can be combined by ORing the keywords:
# varName = VARARRAY | VARTOKEN, [Normal Attribute]
# Normal Attributes:
# VARBIT (Bit flag value, !Cannot be an array)
# VARBYTE (one-byte value)
# VARDOUBLE (double-precision floating-point value)
# VARDWORD (four-byte value)
# VARFLOAT (floating-point value)
# VARREADABLE
# VARSEQ
# VARSTRING (one-byte character array)
# VARUSTRING (two-byte unicode character array)
# VARWSTRING (two-byte wide character array)
# VARWORD (two-byte value)
# VARWRITEABLE
# Normal Attributes can be combined by ORing the keywords:
# varName = VARARRAY | VARTOKEN, VARBYTE | VARREADABLE
# | VARWRITEABLE
[VARS]
PORTA = VARNONE,VARBYTE | VARREADABLE | VARWRITEABLE
PORTB = VARNONE,VARBYTE | VARREADABLE | VARWRITEABLE
Listing 8— Note that the
attributes are ORed for definition.