Classes |
struct | CheetahExt |
struct | CheetahVersion |
Defines |
#define | CH_DEBUG 0 |
#define | CH_HEADER_VERSION 0x0300 /* v3.00 */ |
#define | CH_HOST_IFCE_FULL_SPEED 0x00 |
#define | CH_HOST_IFCE_HIGH_SPEED 0x01 |
#define | CH_PORT_NOT_FREE 0x8000 |
#define | CH_TARGET_POWER_OFF 0x00 |
#define | CH_TARGET_POWER_ON 0x01 |
#define | CH_TARGET_POWER_QUERY 0x80 |
Typedefs |
typedef int | Cheetah |
typedef struct CheetahExt | CheetahExt |
typedef enum CheetahSpiBitorder | CheetahSpiBitorder |
typedef enum CheetahSpiPhase | CheetahSpiPhase |
typedef enum CheetahSpiPolarity | CheetahSpiPolarity |
typedef enum CheetahStatus | CheetahStatus |
typedef struct CheetahVersion | CheetahVersion |
Enumerations |
enum | CheetahSpiBitorder { CH_SPI_BITORDER_MSB = 0,
CH_SPI_BITORDER_LSB = 1
} |
enum | CheetahSpiPhase { CH_SPI_PHASE_SAMPLE_SETUP = 0,
CH_SPI_PHASE_SETUP_SAMPLE = 1
} |
enum | CheetahSpiPolarity { CH_SPI_POL_RISING_FALLING = 0,
CH_SPI_POL_FALLING_RISING = 1
} |
enum | CheetahStatus {
CH_OK = 0,
CH_UNABLE_TO_LOAD_LIBRARY = -1,
CH_UNABLE_TO_LOAD_DRIVER = -2,
CH_UNABLE_TO_LOAD_FUNCTION = -3,
CH_INCOMPATIBLE_LIBRARY = -4,
CH_INCOMPATIBLE_DEVICE = -5,
CH_INCOMPATIBLE_DRIVER = -6,
CH_COMMUNICATION_ERROR = -7,
CH_UNABLE_TO_OPEN = -8,
CH_UNABLE_TO_CLOSE = -9,
CH_INVALID_HANDLE = -10,
CH_CONFIG_ERROR = -11,
CH_UNKNOWN_PROTOCOL = -12,
CH_STILL_ACTIVE = -13,
CH_FUNCTION_NOT_AVAILABLE = -14,
CH_OS_ERROR = -15,
CH_SPI_WRITE_ERROR = -100,
CH_SPI_BATCH_EMPTY_QUEUE = -101,
CH_SPI_BATCH_SHORT_BUFFER = -102,
CH_SPI_ASYNC_EMPTY = -103,
CH_SPI_ASYNC_PENDING = -104,
CH_SPI_ASYNC_MAX_REACHED = -105,
CH_SPI_ASYNC_EXCESS_DELAY = -106
} |
Functions |
int | ch_close (Cheetah cheetah) |
int | ch_dev_addr (Cheetah cheetah) |
int | ch_find_devices (int num_devices, u16 *devices) |
int | ch_find_devices_ext (int num_devices, u16 *devices, int num_ids, u32 *unique_ids) |
int | ch_host_ifce_speed (Cheetah cheetah) |
Cheetah | ch_open (int port_number) |
Cheetah | ch_open_ext (int port_number, CheetahExt *ch_ext) |
int | ch_port (Cheetah cheetah) |
u32 | ch_sleep_ms (u32 milliseconds) |
int | ch_spi_async_collect (Cheetah cheetah, int num_bytes, u08 *data_in) |
int | ch_spi_async_submit (Cheetah cheetah) |
int | ch_spi_batch_length (Cheetah cheetah) |
int | ch_spi_batch_shift (Cheetah cheetah, int num_bytes, u08 *data_in) |
int | ch_spi_bitrate (Cheetah cheetah, int bitrate_khz) |
int | ch_spi_configure (Cheetah cheetah, CheetahSpiPolarity polarity, CheetahSpiPhase phase, CheetahSpiBitorder bitorder, u08 ss_polarity) |
int | ch_spi_queue_array (Cheetah cheetah, int num_bytes, const u08 *data_out) |
int | ch_spi_queue_byte (Cheetah cheetah, int count, u08 data) |
int | ch_spi_queue_clear (Cheetah cheetah) |
int | ch_spi_queue_delay_cycles (Cheetah cheetah, int cycles) |
int | ch_spi_queue_delay_ns (Cheetah cheetah, int nanoseconds) |
int | ch_spi_queue_oe (Cheetah cheetah, u08 oe) |
int | ch_spi_queue_ss (Cheetah cheetah, u08 active) |
const char * | ch_status_string (int status) |
int | ch_target_power (Cheetah cheetah, u08 power_flag) |
u32 | ch_unique_id (Cheetah cheetah) |
int | ch_version (Cheetah cheetah, CheetahVersion *version) |