Defines | Functions | Variables
cheetah.c File Reference
#include "biotac_sensors/cheetah.h"
Include dependency graph for cheetah.c:

Go to the source code of this file.

Defines

#define API_DEBUG   CH_DEBUG
#define API_HEADER_VERSION   CH_HEADER_VERSION
#define API_INCOMPATIBLE_LIBRARY   CH_INCOMPATIBLE_LIBRARY
#define API_NAME   "cheetah"
#define API_OK   CH_OK
#define API_REQ_SW_VERSION   CH_REQ_SW_VERSION
#define API_UNABLE_TO_LOAD_FUNCTION   CH_UNABLE_TO_LOAD_FUNCTION
#define API_UNABLE_TO_LOAD_LIBRARY   CH_UNABLE_TO_LOAD_LIBRARY
#define CH_CFILE_VERSION   0x0300 /* v3.00 */
#define CH_REQ_SW_VERSION   0x0300 /* v3.00 */

Functions

static void * _loadFunction (const char *name, int *result)
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)

Variables

static int(* c_ch_close )(Cheetah)=0
static int(* c_ch_dev_addr )(Cheetah)=0
static int(* c_ch_find_devices )(int, u16 *)=0
static int(* c_ch_find_devices_ext )(int, u16 *, int, u32 *)=0
static int(* c_ch_host_ifce_speed )(Cheetah)=0
static Cheetah(* c_ch_open )(int)=0
static Cheetah(* c_ch_open_ext )(int, CheetahExt *)=0
static int(* c_ch_port )(Cheetah)=0
static u32(* c_ch_sleep_ms )(u32)=0
static int(* c_ch_spi_async_collect )(Cheetah, int, u08 *)=0
static int(* c_ch_spi_async_submit )(Cheetah)=0
static int(* c_ch_spi_batch_length )(Cheetah)=0
static int(* c_ch_spi_batch_shift )(Cheetah, int, u08 *)=0
static int(* c_ch_spi_bitrate )(Cheetah, int)=0
static int(* c_ch_spi_configure )(Cheetah, CheetahSpiPolarity, CheetahSpiPhase, CheetahSpiBitorder, u08)=0
static int(* c_ch_spi_queue_array )(Cheetah, int, const u08 *)=0
static int(* c_ch_spi_queue_byte )(Cheetah, int, u08)=0
static int(* c_ch_spi_queue_clear )(Cheetah)=0
static int(* c_ch_spi_queue_delay_cycles )(Cheetah, int)=0
static int(* c_ch_spi_queue_delay_ns )(Cheetah, int)=0
static int(* c_ch_spi_queue_oe )(Cheetah, u08)=0
static int(* c_ch_spi_queue_ss )(Cheetah, u08)=0
static const char *(* c_ch_status_string )(int)=0
static int(* c_ch_target_power )(Cheetah, u08)=0
static u32(* c_ch_unique_id )(Cheetah)=0
static int(* c_ch_version )(Cheetah, CheetahVersion *)=0

Define Documentation

#define API_DEBUG   CH_DEBUG

Definition at line 82 of file cheetah.c.

Definition at line 87 of file cheetah.c.

Definition at line 85 of file cheetah.c.

#define API_NAME   "cheetah"

Definition at line 81 of file cheetah.c.

#define API_OK   CH_OK

Definition at line 83 of file cheetah.c.

Definition at line 88 of file cheetah.c.

Definition at line 86 of file cheetah.c.

Definition at line 84 of file cheetah.c.

#define CH_CFILE_VERSION   0x0300 /* v3.00 */

Definition at line 62 of file cheetah.c.

#define CH_REQ_SW_VERSION   0x0300 /* v3.00 */

Definition at line 63 of file cheetah.c.


Function Documentation

static void* _loadFunction ( const char *  name,
int *  result 
) [static]

Definition at line 228 of file cheetah.c.

int ch_close ( Cheetah  cheetah)

Definition at line 369 of file cheetah.c.

int ch_dev_addr ( Cheetah  cheetah)

Definition at line 483 of file cheetah.c.

int ch_find_devices ( int  num_devices,
u16 *  devices 
)

Definition at line 308 of file cheetah.c.

int ch_find_devices_ext ( int  num_devices,
u16 *  devices,
int  num_ids,
u32 *  unique_ids 
)

Definition at line 323 of file cheetah.c.

int ch_host_ifce_speed ( Cheetah  cheetah)

Definition at line 469 of file cheetah.c.

Cheetah ch_open ( int  port_number)

Definition at line 340 of file cheetah.c.

Cheetah ch_open_ext ( int  port_number,
CheetahExt ch_ext 
)

Definition at line 354 of file cheetah.c.

int ch_port ( Cheetah  cheetah)

Definition at line 383 of file cheetah.c.

u32 ch_sleep_ms ( u32  milliseconds)

Definition at line 440 of file cheetah.c.

int ch_spi_async_collect ( Cheetah  cheetah,
int  num_bytes,
u08 *  data_in 
)

Definition at line 680 of file cheetah.c.

int ch_spi_async_submit ( Cheetah  cheetah)

Definition at line 666 of file cheetah.c.

int ch_spi_batch_length ( Cheetah  cheetah)

Definition at line 636 of file cheetah.c.

int ch_spi_batch_shift ( Cheetah  cheetah,
int  num_bytes,
u08 *  data_in 
)

Definition at line 650 of file cheetah.c.

int ch_spi_bitrate ( Cheetah  cheetah,
int  bitrate_khz 
)

Definition at line 497 of file cheetah.c.

int ch_spi_configure ( Cheetah  cheetah,
CheetahSpiPolarity  polarity,
CheetahSpiPhase  phase,
CheetahSpiBitorder  bitorder,
u08  ss_polarity 
)

Definition at line 512 of file cheetah.c.

int ch_spi_queue_array ( Cheetah  cheetah,
int  num_bytes,
const u08 *  data_out 
)

Definition at line 620 of file cheetah.c.

int ch_spi_queue_byte ( Cheetah  cheetah,
int  count,
u08  data 
)

Definition at line 604 of file cheetah.c.

int ch_spi_queue_clear ( Cheetah  cheetah)

Definition at line 530 of file cheetah.c.

int ch_spi_queue_delay_cycles ( Cheetah  cheetah,
int  cycles 
)

Definition at line 559 of file cheetah.c.

int ch_spi_queue_delay_ns ( Cheetah  cheetah,
int  nanoseconds 
)

Definition at line 574 of file cheetah.c.

int ch_spi_queue_oe ( Cheetah  cheetah,
u08  oe 
)

Definition at line 544 of file cheetah.c.

int ch_spi_queue_ss ( Cheetah  cheetah,
u08  active 
)

Definition at line 589 of file cheetah.c.

const char* ch_status_string ( int  status)

Definition at line 411 of file cheetah.c.

int ch_target_power ( Cheetah  cheetah,
u08  power_flag 
)

Definition at line 454 of file cheetah.c.

u32 ch_unique_id ( Cheetah  cheetah)

Definition at line 397 of file cheetah.c.

int ch_version ( Cheetah  cheetah,
CheetahVersion version 
)

Definition at line 425 of file cheetah.c.


Variable Documentation

int(* c_ch_close)(Cheetah)=0 [static]

Definition at line 368 of file cheetah.c.

int(* c_ch_dev_addr)(Cheetah)=0 [static]

Definition at line 482 of file cheetah.c.

int(* c_ch_find_devices)(int, u16 *)=0 [static]

Definition at line 307 of file cheetah.c.

int(* c_ch_find_devices_ext)(int, u16 *, int, u32 *)=0 [static]

Definition at line 322 of file cheetah.c.

int(* c_ch_host_ifce_speed)(Cheetah)=0 [static]

Definition at line 468 of file cheetah.c.

Cheetah(* c_ch_open)(int)=0 [static]

Definition at line 339 of file cheetah.c.

Cheetah(* c_ch_open_ext)(int, CheetahExt *)=0 [static]

Definition at line 353 of file cheetah.c.

int(* c_ch_port)(Cheetah)=0 [static]

Definition at line 382 of file cheetah.c.

u32(* c_ch_sleep_ms)(u32)=0 [static]

Definition at line 439 of file cheetah.c.

int(* c_ch_spi_async_collect)(Cheetah, int, u08 *)=0 [static]

Definition at line 679 of file cheetah.c.

int(* c_ch_spi_async_submit)(Cheetah)=0 [static]

Definition at line 665 of file cheetah.c.

int(* c_ch_spi_batch_length)(Cheetah)=0 [static]

Definition at line 635 of file cheetah.c.

int(* c_ch_spi_batch_shift)(Cheetah, int, u08 *)=0 [static]

Definition at line 649 of file cheetah.c.

int(* c_ch_spi_bitrate)(Cheetah, int)=0 [static]

Definition at line 496 of file cheetah.c.

Definition at line 511 of file cheetah.c.

int(* c_ch_spi_queue_array)(Cheetah, int, const u08 *)=0 [static]

Definition at line 619 of file cheetah.c.

int(* c_ch_spi_queue_byte)(Cheetah, int, u08)=0 [static]

Definition at line 603 of file cheetah.c.

int(* c_ch_spi_queue_clear)(Cheetah)=0 [static]

Definition at line 529 of file cheetah.c.

int(* c_ch_spi_queue_delay_cycles)(Cheetah, int)=0 [static]

Definition at line 558 of file cheetah.c.

int(* c_ch_spi_queue_delay_ns)(Cheetah, int)=0 [static]

Definition at line 573 of file cheetah.c.

int(* c_ch_spi_queue_oe)(Cheetah, u08)=0 [static]

Definition at line 543 of file cheetah.c.

int(* c_ch_spi_queue_ss)(Cheetah, u08)=0 [static]

Definition at line 588 of file cheetah.c.

const char*(* c_ch_status_string)(int)=0 [static]

Definition at line 410 of file cheetah.c.

int(* c_ch_target_power)(Cheetah, u08)=0 [static]

Definition at line 453 of file cheetah.c.

u32(* c_ch_unique_id)(Cheetah)=0 [static]

Definition at line 396 of file cheetah.c.

int(* c_ch_version)(Cheetah, CheetahVersion *)=0 [static]

Definition at line 424 of file cheetah.c.



biotac_sensors
Author(s): Ian McMahon
autogenerated on Sun Oct 5 2014 22:30:25