
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 42
edt_reg_or
Note
Use this routine with care; it writes directly to the hardware. An incorrect value can crash
your system, possibly causing loss of data.
Description
Performs a bitwise logical OR of the value of the specified register and the value provided in the
argument; the result becomes the new value of the register. Use this routine instead of using ioctls.
Syntax
#include "edtinc.h"
uint edt_reg_or(EdtDev *edt_p, uint address, uint mask);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
address
The name of the register to modify. Use the names provided in the register
descriptions in the section entitled “Hardware.”
mask
The value to OR with the register.
Return
The new value of the register.
edt_get_foicount
Description
Returns the number of RCI modules connected to the EDT FOI (fiber optic interface) board.
Syntax
int edt_get_foicount(EdtDev *edt_p)
Arguments
edt_p
device struct returned from edt_open
Example
int num-rcis;
num_rcia=edt_get_foicount(edt_p);
Return
Integer
See Also
edt_set_foiunit(), edt_get_foiunit(), edt_set_foicount()
edt_set_foicount
Description
Sets which RCI unit to address with subsequent serial and register read/write functions. Used with the
PDV FOI.
Kommentare zu diesen Handbüchern