Function AddrExpr

Top 

Declaration:

unsigned long AddrExpr(char str[]);

Description

Calculates the expression and returns the result (the str parameter) as an address in microcontroller memory.

Example

  int addr_port0 = AddrExpr("PORT0");

  WaitMemoryAccess(addr_port0, AS_DATA, 1, MA_WRITE);

Note that 'AddrExpr("PORT0")' is the same as 'Expr("&PORT0")'.

Also, see Expr, FloatExpr, Operations and Expressions.