Apps Components Interfaces All Files Source Tree | source: tos.lib.VM.interfaces.BombillaStacks.nc |
Interface that specifies the operations on operand and return stacks in Bombilla.
Commands |
Commands - Details |
Parameters: |
context - The context to modify val - The value to push |
Returns: | SUCCESS if the value was placed on the stack, FAIL otherwise (e.g. stack overflow). |
Parameters: |
context - The context to modify type - The sensor reading type (one of BOMB_DATA_*) val - The value to push |
Returns: | SUCCESS if the value was placed on the stack, FAIL otherwise (e.g. stack overflow). |
Parameters: |
context - The context to modify buf - The buffer to push |
Returns: | SUCCESS if the value was placed on the stack, FAIL otherwise (e.g. stack overflow). |
Parameters: |
context - The context to modify var - The variable to push. |
Returns: | SUCCESS if the value was placed on the stack, FAIL otherwise (e.g. stack overflow). |
Parameters: |
context - The context to pop from. |
Returns: | The variable popped. If the operand stack is empty when called, a variable of type BOMB_TYPE_INVALID is returned. |
Returns: | SUCCESS indicates the address was pushed, FAIL indicates it was not (e.g. return stack overflow). |
Returns: | SUCCESS indicates the address was restored, FAIL indicates it was not (e.g. return stack underflow, invalid address). |
Returns: | The depth. |
Returns: | The depth. |