_playerc_device_t Struct Reference
Device API

Common device info. More...

`#include <playerc.h>`

## Public Attributes

void * | id
| A useful ID for identifying devices; mostly used by other language bindings. More...
playerc_client_t * | client
| Pointer to the client proxy. More...
player_devaddr_t | addr
| Device address.
char | drivername [PLAYER_MAX_DRIVER_STRING_LEN]
| The driver name. More...
int | subscribed
| The subscribe flag is non-zero if the device has been successfully subscribed (read-only). More...
double | datatime
| Data timestamp, i.e., the time at which the data was generated (s). More...
double | lasttime
| Data timestamp from the previous data. More...
int | fresh
| Freshness flag. More...
int | freshgeom
| Freshness flag. More...
int | freshconfig
| Freshness flag. More...
playerc_putmsg_fn_t | putmsg
| Standard message callback for this device. More...
void * | user_data
| Extra user data for this device. More...
int | callback_count
| Extra callbacks for this device. More...
playerc_callback_fn_t | callback [4]
void * | callback_data [4]

## Detailed Description

Common device info.

## Member Data Documentation

int _playerc_device_t::callback_count

Extra callbacks for this device.

playerc_client_t* _playerc_device_t::client

Pointer to the client proxy.

double _playerc_device_t::datatime

Data timestamp, i.e., the time at which the data was generated (s).

char _playerc_device_t::drivername[PLAYER_MAX_DRIVER_STRING_LEN]

The driver name.

int _playerc_device_t::fresh

Freshness flag.

Set to 1 whenever data is dispatched to this proxy. Useful with the multi-client, but the user must manually set it to 0 after using the data.

int _playerc_device_t::freshconfig

Freshness flag.

Set to 1 whenever data is dispatched to this proxy. Useful with the multi-client, but the user must manually set it to 0 after using the data.

int _playerc_device_t::freshgeom

Freshness flag.

Set to 1 whenever data is dispatched to this proxy. Useful with the multi-client, but the user must manually set it to 0 after using the data.

void* _playerc_device_t::id

A useful ID for identifying devices; mostly used by other language bindings.

For backwards-compatibility, this is passed as void pointer.

double _playerc_device_t::lasttime

Data timestamp from the previous data.

playerc_putmsg_fn_t _playerc_device_t::putmsg

Standard message callback for this device.

int _playerc_device_t::subscribed

The subscribe flag is non-zero if the device has been successfully subscribed (read-only).

void* _playerc_device_t::user_data

Extra user data for this device.

The documentation for this struct was generated from the following file:

- playerc.h

Last updated 12 September 2005 21:38:45