#include <cogent.h>
int DR_ApWriteControl(
int card_id, int buffer, unsigned short offset, unsigned short size, void* control, char** error )
;
The ID of the card to be written with status.
The ID of the target status buffer (if applicable).
The starting (byte) address of the status data within the specified card buffer (if applicable).
The maximum number of bytes to be written.
A pointer to a card-dependent structure (at least size bytes long) that contains the status information for the card.
The address of a string pointer. In case of error (non-zero return), the string pointer is set to the corresponding error description string. The error string is contained in a static buffer and remains valid only until the next API call. The parameter may be NULL if no error string is required.
The integer value 0 if the function was successful, otherwise one of the following error codes:
DR_API_IPC_ERRORS DR_ERR_CARD_INVALID DR_ERR_BLK_INVALID DR_ERR_BLK_OFS_INVALID DR_ERR_BLK_SIZE_INVALID DR_ERR_CMD_INVALID
This function sends card control information to the driver. The control data is dependent on the card.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.