| aOOPic_WriteInt | Index |
Definition:
Parameters:
| oopic | - | The node setting of the target OOPic. |
| addr | - | The address of the int to be written. |
| mask | - | A mask for which bits to modify. |
| data | - | The data to be written. |
Return Value:
Description:
This routine writes an int to the object RAM in an OOPic microcontroller. A bit of 0 in the mask value flags a bit to be modified. A mask of 0 modifies an entire byte. The mask is applied to both bytes in the int parameter.
This routine reverses the byte-ordering of the stored data for compatibility with OOPic byte-ordering of 2-byte values. Generalized 2-byte data transfers must account for this byte-reordering or use two single-byte accesses.
Example:
aOOPic_WriteInt(4,124,0,730);
This would write a value of 730 into the two bytes stored at location 124 in the object RAM of an OOPic with a node setting of 4. The two bytes of the int parameter are stored in reverse order.
Related: