| aOOPic_WriteChar | Index |
Definition:
Parameters:
| oopic | - | The node setting of the target OOPic. |
| addr | - | The address of the byte to be written. |
| mask | - | A mask for which bits to modify. |
| data | - | The data to be written. |
Return Value:
Description:
This routine writes a byte 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.
Example:
aOOPic_WriteChar(4,124,0,73);
This would write a value of 73 into the byte stored at location 124 in the object RAM of an OOPic with a node setting of 4.
aOOPic_WriteChar(4,124,0xF0,0x30);
This would write a value of 3 into the high nibble of the byte stored at location 124 in the object RAM of an OOPic with a node setting of 4. The low nibble would remain unchanged.
Related: