Initialize a brick structure.
- Parameters:
-
| brick | - Pointer to an uninitialized brick stucture. |
| type | - RCT_NXT or RCT_RCX. |
- Author:
- Jason W. Bacon
This function initializes the brick structure, including the brick dependent substructures for NXT, RCX, etc. This function must be called before any other functions that operate on the structure. Calling this function on a brick structure that has already been initialized and worked with may have disastrous results.
Supported bricks: