void rct_init_brick_struct ( rct_brick_t *  brick,
rct_brick_type_t  type 
)

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:

  • NXT
  • RCX


Generated on Sun Jan 13 21:31:18 2008 for roboctl by  doxygen 1.5.1