flinklib
flinklib: flink C library for Linux
|
Contains the base functionality for flink. More...
#include "flinklib.h"
#include "flinkioctl.h"
#include "types.h"
#include "valid.h"
#include "error.h"
#include "log.h"
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
flink_dev * | flink_open (const char *file_name) |
Opens a flink device file. More... | |
int | flink_close (flink_dev *dev) |
Close an open flink device. More... | |
int | flink_get_nof_subdevices (flink_dev *dev) |
Returns the number of subdevices of a fink device. More... | |
int | flink_subdevice_reset (flink_subdev *subdev) |
Reset a flink subdevice. More... | |
int | flink_subdevice_select (flink_subdev *subdev, uint8_t exclusive) |
Select a flink subdevice for further operations. More... | |
flink_subdev * | flink_get_subdevice_by_id (flink_dev *dev, uint8_t subdev_id) |
Find subdevice of a device with a given id. More... | |
flink_subdev * | flink_get_subdevice_by_unique_id (flink_dev *dev, uint8_t unique_id) |
Find subdevice of a device with a given unique id. More... | |
uint8_t | flink_subdevice_get_id (flink_subdev *subdev) |
Get the id of a subdevice. More... | |
uint16_t | flink_subdevice_get_function (flink_subdev *subdev) |
Get the function of a subdevice. More... | |
uint8_t | flink_subdevice_get_subfunction (flink_subdev *subdev) |
Get the subfunction of a subdevice. More... | |
uint8_t | flink_subdevice_get_function_version (flink_subdev *subdev) |
Get the function version of a subdevice. More... | |
uint32_t | flink_subdevice_get_baseaddr (flink_subdev *subdev) |
Get the base address of a subdevice. More... | |
uint32_t | flink_subdevice_get_memsize (flink_subdev *subdev) |
Get the memory size of a subdevice. More... | |
uint32_t | flink_subdevice_get_nofchannels (flink_subdev *subdev) |
Get the number of channels of a subdevice. More... | |
uint32_t | flink_subdevice_get_unique_id (flink_subdev *subdev) |
Get the unique id of a subdevice. More... | |
Contains the base functionality for flink.
Contains functions to initialize, add and remove flink devices and subdevices
Definition in file base.c.
int flink_close | ( | flink_dev * | dev | ) |
int flink_get_nof_subdevices | ( | flink_dev * | dev | ) |
flink_subdev* flink_get_subdevice_by_id | ( | flink_dev * | dev, |
uint8_t | subdev_id | ||
) |
flink_subdev* flink_get_subdevice_by_unique_id | ( | flink_dev * | dev, |
uint8_t | unique_id | ||
) |
flink_dev* flink_open | ( | const char * | file_name | ) |
uint32_t flink_subdevice_get_baseaddr | ( | flink_subdev * | subdev | ) |
uint16_t flink_subdevice_get_function | ( | flink_subdev * | subdev | ) |
uint8_t flink_subdevice_get_function_version | ( | flink_subdev * | subdev | ) |
uint8_t flink_subdevice_get_id | ( | flink_subdev * | subdev | ) |
uint32_t flink_subdevice_get_memsize | ( | flink_subdev * | subdev | ) |
uint32_t flink_subdevice_get_nofchannels | ( | flink_subdev * | subdev | ) |
uint8_t flink_subdevice_get_subfunction | ( | flink_subdev * | subdev | ) |
uint32_t flink_subdevice_get_unique_id | ( | flink_subdev * | subdev | ) |
int flink_subdevice_reset | ( | flink_subdev * | subdev | ) |
int flink_subdevice_select | ( | flink_subdev * | subdev, |
uint8_t | exclusive | ||
) |