Functions | |
| EdtDev * | edt_open (char *device_name, int unit) |
| Opens the specified EDT Product and sets up the device handle. | |
| EdtDev * | edt_open_quiet (char *device_name, int unit) |
| Just a version of edt_open that does so quietly, so we can try opening the device just to see if it's there without a lot of printfs coming out. | |
| EdtDev * | edt_open_channel (char *device_name, int unit, int channel) |
| Opens a specific DMA channel on the specified EDT Product, when multiple channels are supported by the Xilinx firmware, and sets up the device handle. | |
| int | edt_close (EdtDev *edt_p) |
| Shuts down all pending I/O operations, closes the device or channel and frees all driver resources associated with the device handle. | |
| EdtDev* edt_open | ( | char * | device_name, | |
| int | unit | |||
| ) |
Opens the specified EDT Product and sets up the device handle.
Once opened, the device handle may be used to perform I/O using edt_read, edt_write, edt_configure_ring_buffers, and other input-output library calls. When finished, use edt_close to release any resources allocated during use.
| device_name | a string with the name of the EDT Product board; for example, "pcd". EDT_INTERFACE can also be used; it is defined as the name of the board type in edtdef.h. | |
| unit | Unit number of the device (if multiple devices). The first unit is always 0. |
| EdtDev* edt_open_quiet | ( | char * | device_name, | |
| int | unit | |||
| ) |
Just a version of edt_open that does so quietly, so we can try opening the device just to see if it's there without a lot of printfs coming out.
| device_name | a string with the name of the EDT Product board; for example, "pcd". EDT_INTERFACE can also be used; it is defined as the name of the board type in edtdef.h. | |
| unit | Unit number of the device (if multiple devices). The first unit is always 0. |
| EdtDev* edt_open_channel | ( | char * | device_name, | |
| int | unit, | |||
| int | channel | |||
| ) |
Opens a specific DMA channel on the specified EDT Product, when multiple channels are supported by the Xilinx firmware, and sets up the device handle.
Use edt_close to close the channel.
To open a device with only one channel, just use edt_open.
Once opened, the device handle may be used to perform I/O using edt_read, edt_write, edt_configure_ring_buffers, and other input-output library calls. When finished, use edt_close to release any resources allocated during use.
| device_name | a string with the name of the EDT Product board; for example, "pcd". EDT_INTERFACE can also be used; it is defined as the name of the board type in edtdef.h. | |
| unit | Unit number of the device (if multiple devices). The first unit is always 0. | |
| channel | specifies DMA channel number (counting from zero). |
| int edt_close | ( | EdtDev * | edt_p | ) |
Shuts down all pending I/O operations, closes the device or channel and frees all driver resources associated with the device handle.
| edt_p | pointer to edt device structure returned by edt_open |
1.4.7