Required User-written Code : Card Driver

Card Driver

The card driver function should have two parameters. The first is a pointer to the report element structure. The second is an integer that defines whether to perform input or output mapping. It is recommended that you use the constants STM_IN_MAP and STM_OUT_MAP (defined in the file types.h of the Intrinsics library) for this purpose. When you perform input mapping, the driver should put the received value into the received_val field of its first argument. Note that information about the corresponding card is available from the card_p field of the report element.