SSC.Sensor

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable GObject.Object GObject.Object SSC.Sensor SSC.Sensor GObject.Object->SSC.Sensor Gio.AsyncInitable->SSC.Sensor

Subclasses:

SSC.SensorAccelerometer, SSC.SensorCompass, SSC.SensorGyroscope, SSC.SensorLight, SSC.SensorMagnetometer, SSC.SensorProximity

Methods

Inherited:

GObject.Object (37), Gio.AsyncInitable (4)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new (data_type, cancellable, callback, *user_data)

class

new_finish (result)

close (cancellable, callback, *user_data)

close_finish (result)

open (cancellable, callback, *user_data)

open_finish (result)

Virtual Methods

Inherited:

GObject.Object (7), Gio.AsyncInitable (2)

do_close (cancellable, callback, *user_data)

do_close_finish (result)

do_open (cancellable, callback, *user_data)

do_open_finish (result)

Properties

Name

Type

Flags

Short Description

available

str

r

If the sensor is available for measurements.

data-type

str

r/w/co

The data type supported by the sensor.

mount-matrix

int

r

The mount matrix of the sensor in the physical space.

name

str

r

Name of the sensor driver.

sample-rate

str

r

The sample rate in Hz supported by the sensor.

stream-type

str

r

The stream type supported by the sensor.

uid-high

int

r/w/co

Higher 64 bits of the sensor UID

uid-low

int

r/w/co

Lower 64 bits of the sensor UID

vendor

str

r

Name of the vendor of the sensor.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class SSC.Sensor(**kwargs)
Bases:

GObject.Object, Gio.AsyncInitable

Abstract:

No

Structure:

SSC.SensorClass

classmethod error_quark()
Return type:

int

classmethod new(data_type, cancellable, callback, *user_data)
Parameters:
classmethod new_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

SSC.Sensor

close(cancellable, callback, *user_data)
Parameters:
close_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

open(cancellable, callback, *user_data)
Parameters:
open_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

do_close(cancellable, callback, *user_data) virtual
Parameters:
do_close_finish(result) virtual
Parameters:

result (Gio.AsyncResult) –

Return type:

bool

do_open(cancellable, callback, *user_data) virtual
Parameters:
do_open_finish(result) virtual
Parameters:

result (Gio.AsyncResult) –

Return type:

bool

Property Details

SSC.Sensor.props.available
Name:

available

Type:

str

Default Value:

None

Flags:

READABLE

If the sensor is available for measurements.

SSC.Sensor.props.data_type
Name:

data-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The data type supported by the sensor.

SSC.Sensor.props.mount_matrix
Name:

mount-matrix

Type:

int

Default Value:

None

Flags:

READABLE

The mount matrix of the sensor in the physical space.

SSC.Sensor.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

Name of the sensor driver.

SSC.Sensor.props.sample_rate
Name:

sample-rate

Type:

str

Default Value:

None

Flags:

READABLE

The sample rate in Hz supported by the sensor.

SSC.Sensor.props.stream_type
Name:

stream-type

Type:

str

Default Value:

None

Flags:

READABLE

The stream type supported by the sensor.

SSC.Sensor.props.uid_high
Name:

uid-high

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Higher 64 bits of the sensor UID

SSC.Sensor.props.uid_low
Name:

uid-low

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Lower 64 bits of the sensor UID

SSC.Sensor.props.vendor
Name:

vendor

Type:

str

Default Value:

None

Flags:

READABLE

Name of the vendor of the sensor.