Personal tools
 
Document Actions

Class "hw"

Functions managing the Tux Droid hardware

Thierry Nancy

This tutorial provides functions and parameters description while illustrating each item with examples
Page 4 of 8.

Functions List


   1.4) Class : tux.hw 
1.4.1) Function : tux.hw.alsa_devices_count
1.4.2) Function : tux.hw.alsa_devices_select
1.4.3) Function : tux.hw.audio_get_version
1.4.4) Function : tux.hw.behavior_get_version
1.4.5) Function : tux.hw.donglerf_get_version
1.4.6) Function : tux.hw.tuxrf_get_version

Functions Details

 Global variables of this class

"TUX_devices" as tuple : tuple of tux devices as tuple
(param 0 = alsa device name)
(param 1 = sound card)
(param 2 = sound device)
(param 3 = usb bus)
(param 4 = usb device)
(param 5 = usb PID)
(param 6 = usb VID)
"TUX_devices_count" as integer : number of tux devices
"alsa_device" as string : current alsa device name
(is selected on the beginning
of the api with the first tux
sound card)

Functions

1.4.1) Function : tux.hw.alsa_devices_count

Return the number of tux alsa devices

Return an integer

Example:
>>> print tux.hw.alsa_devices_count()

1.4.2) Function : tux.hw.alsa_devices_select

Get the alsa device name of a tux sound card

Return a string (ex: 'hw:1,0')

Example:
>>> print tux.hw.alsa_devices_select(0)

1.4.3) Function : tux.hw.audio_get_version

Get the version of the audio firmware

Return a tuple : (major version, minor version, update version,
revision, author_id)

Example:
>>> print tux.hw.audio_get_version()

1.4.4) Function : tux.hw.behavior_get_version

Get the version of the behavior firmware

Return a tuple : (major version, minor version, update version,
revision, author_id)

Example:
>>> print tux.hw.behavior_get_version()

1.4.5) Function : tux.hw.donglerf_get_version

Get the version of the donglerf firmware

Return a tuple : (major version, minor version, update version,
revision, author_id)

Example:
>>> print tux.hw.donglerf_get_version()

1.4.6) Function : tux.hw.tuxrf_get_version

Get the version of the tuxrf firmware

Return a tuple : (major version, minor version, update version,
revision, author_id)

Example:
>>> print tux.hw.tuxrf_get_version()


 
by Thierry Nancy last modified 2007-05-02 16:15
Contributors: Rémi Jocaille, Thierry Nancy
You are here: Home Documentation Tutorials Tux API Documentation Class "hw"

Powered by Plone CMS, the Open Source Content Management System