SyntekUSBVideoCamera
|
Driver for Syntek USB video camera. More...
Go to the source code of this file.
Functions | |
int | dev_stk0408_initialize_device (struct usb_stk11xx *) |
This function initializes the device. More... | |
int | dev_stk0408_configure_device (struct usb_stk11xx *, int) |
This function configures the device. More... | |
int | dev_stk0408_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk0408_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk0408_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk0408_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk0408_sensor_settings (struct usb_stk11xx *) |
This function sets the default sensor settings. More... | |
int | dev_stk0408_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk0408_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk0408_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk0408_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk0408_decode (struct usb_stk11xx *) |
int | dev_stka311_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stka311_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stka311_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stka311_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stka311_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stka311_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stka311_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stka311_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stka311_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stka311_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stka311_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stka821_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stka821_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stka821_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stka821_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stka821_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stka821_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stka821_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stka821_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stka821_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stka821_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stka821_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a31_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stk6a31_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stk6a31_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk6a31_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk6a31_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk6a31_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk6a31_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stk6a31_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk6a31_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a31_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a31_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a33_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stk6a33_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stk6a33_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk6a33_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk6a33_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk6a33_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk6a33_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stk6a33_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk6a33_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a33_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a33_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a51_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stk6a51_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stk6a51_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk6a51_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk6a51_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk6a51_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk6a51_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stk6a51_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk6a51_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a51_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a51_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a54_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stk6a54_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stk6a54_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk6a54_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk6a54_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk6a54_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk6a54_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stk6a54_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk6a54_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a54_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6a54_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6d51_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stk6d51_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stk6d51_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk6d51_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk6d51_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk6d51_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk6d51_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stk6d51_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk6d51_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6d51_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk6d51_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk0500_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. More... | |
int | dev_stk0500_configure_device (struct usb_stk11xx *, int) |
This function permits to configure the device. More... | |
int | dev_stk0500_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. More... | |
int | dev_stk0500_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. More... | |
int | dev_stk0500_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. More... | |
int | dev_stk0500_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. More... | |
int | dev_stk0500_sensor_settings (struct usb_stk11xx *) |
This function permits to set default sensor settings. More... | |
int | dev_stk0500_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. More... | |
int | dev_stk0500_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk0500_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
int | dev_stk0500_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. More... | |
Driver for Syntek USB video camera.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Definition in file stk11xx-dev.h.
int dev_stk0408_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 600 of file stk11xx-dev-0408.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk0408_init_camera(), dev_stk0408_initialize_device(), and dev_stk11xx_camera_asleep().
int dev_stk0408_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
' * This functions permits to modify the settings :
Definition at line 736 of file stk11xx-dev-0408.c.
References dev_stk0408_set_camera_quality().
Referenced by dev_stk11xx_camera_settings().
int dev_stk0408_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function configures the device.
dev | Device structure |
step | The step of configuration [0-6] |
This is called multiple times through intitialisation and configuration there appear to be six distinct steps
Definition at line 319 of file stk11xx-dev-0408.c.
References dev_stk0408_sensor_settings(), dev_stk0408_set_camera_quality(), dev_stk0408_start_stream(), dev_stk11xx_camera_off(), dev_stk11xx_camera_on(), stk11xx_video::input, stk11xx_video::norm, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), and usb_stk11xx::vsettings.
Referenced by dev_stk0408_init_camera(), dev_stk0408_initialize_device(), and dev_stk0408_reconf_camera().
int dev_stk0408_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 637 of file stk11xx-dev-0408.c.
References dev_stk0408_camera_asleep(), dev_stk0408_configure_device(), STK_ERROR, and usb_stk11xx_read_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stk0408_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 74 of file stk11xx-dev-0408.c.
References dev_stk0408_camera_asleep(), dev_stk0408_configure_device(), dev_stk11xx_check_device(), stk11xx_video::norm, stk11xx_image_sizes, STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, stk11xx_coord::x, and stk11xx_coord::y.
Referenced by dev_stk11xx_initialize_device().
int dev_stk0408_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 835 of file stk11xx-dev-0408.c.
References dev_stk0408_configure_device(), and dev_stk11xx_camera_settings().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk0408_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function sets the default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 687 of file stk11xx-dev-0408.c.
References stk11xx_video::norm, STK_ERROR, and usb_stk11xx::vsettings.
Referenced by dev_stk0408_configure_device().
int dev_stk0408_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 784 of file stk11xx-dev-0408.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk0408_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
Definition at line 752 of file stk11xx-dev-0408.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, stk11xx_video::hue, STK_DEBUG, usb_stk11xx_write_registry(), and usb_stk11xx::vsettings.
Referenced by dev_stk0408_camera_settings(), dev_stk0408_configure_device(), and dev_stk11xx_set_camera_quality().
int dev_stk0408_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 801 of file stk11xx-dev-0408.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk0408_configure_device(), and dev_stk11xx_start_stream().
int dev_stk0408_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 856 of file stk11xx-dev-0408.c.
References stk11xx_video::hflip, hflip, stk11xx_image_buf::offset, stk11xx_video::palette, STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), stk11xx_video::vflip, vflip, usb_stk11xx::vsettings, stk11xx_coord::x, and stk11xx_coord::y.
Referenced by dev_stk11xx_stop_stream().
int dev_stk0500_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 553 of file stk11xx-dev-0500.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk0500_init_camera(), dev_stk0500_initialize_device(), and dev_stk11xx_camera_asleep().
int dev_stk0500_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 680 of file stk11xx-dev-0500.c.
Referenced by dev_stk11xx_camera_settings().
int dev_stk0500_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 12 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 173 of file stk11xx-dev-0500.c.
References dev_stk0500_sensor_settings(), dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk0500_initialize_device(), and dev_stk0500_reconf_camera().
int dev_stk0500_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 583 of file stk11xx-dev-0500.c.
References dev_stk0500_camera_asleep(), dev_stk11xx_camera_off(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stk0500_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-0500.c.
References dev_stk0500_camera_asleep(), dev_stk0500_configure_device(), dev_stk0500_stop_stream(), dev_stk11xx_check_device(), STK_INFO, usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stk0500_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 812 of file stk11xx-dev-0500.c.
References dev_stk0500_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk0500_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 616 of file stk11xx-dev-0500.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk0500_configure_device().
int dev_stk0500_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 773 of file stk11xx-dev-0500.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk0500_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 699 of file stk11xx-dev-0500.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stk0500_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 789 of file stk11xx-dev-0500.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stk0500_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 830 of file stk11xx-dev-0500.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk0500_initialize_device(), and dev_stk11xx_stop_stream().
int dev_stk6a31_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 539 of file stk11xx-dev-6a31.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), dev_stk6a31_init_camera(), and dev_stk6a31_initialize_device().
int dev_stk6a31_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 715 of file stk11xx-dev-6a31.c.
References dev_stk11xx_check_device(), usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_settings().
int dev_stk6a31_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 12 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 153 of file stk11xx-dev-6a31.c.
References dev_stk11xx_check_device(), dev_stk6a31_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a31_init_camera(), dev_stk6a31_initialize_device(), and dev_stk6a31_reconf_camera().
int dev_stk6a31_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 569 of file stk11xx-dev-6a31.c.
References dev_stk11xx_camera_off(), dev_stk6a31_camera_asleep(), dev_stk6a31_configure_device(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stk6a31_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-6a31.c.
References dev_stk11xx_check_device(), dev_stk6a31_camera_asleep(), dev_stk6a31_configure_device(), STK_INFO, usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stk6a31_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 843 of file stk11xx-dev-6a31.c.
References dev_stk11xx_camera_settings(), and dev_stk6a31_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk6a31_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 603 of file stk11xx-dev-6a31.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a31_configure_device().
int dev_stk6a31_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 794 of file stk11xx-dev-6a31.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk6a31_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 761 of file stk11xx-dev-6a31.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stk6a31_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 810 of file stk11xx-dev-6a31.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stk6a31_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 863 of file stk11xx-dev-6a31.c.
Referenced by dev_stk11xx_stop_stream().
int dev_stk6a33_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 648 of file stk11xx-dev-6a33.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), dev_stk6a33_init_camera(), and dev_stk6a33_initialize_device().
int dev_stk6a33_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 817 of file stk11xx-dev-6a33.c.
References dev_stk11xx_check_device(), usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_settings().
int dev_stk6a33_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 11 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
The steps 0 to 9 are called during the initialization.
Definition at line 364 of file stk11xx-dev-6a33.c.
References dev_stk6a33_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a33_init_camera(), dev_stk6a33_initialize_device(), and dev_stk6a33_reconf_camera().
int dev_stk6a33_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 678 of file stk11xx-dev-6a33.c.
References dev_stk11xx_camera_off(), dev_stk6a33_camera_asleep(), dev_stk6a33_configure_device(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stk6a33_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-6a33.c.
References dev_stk11xx_check_device(), dev_stk6a33_camera_asleep(), dev_stk6a33_configure_device(), STK_DEBUG, STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stk6a33_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 961 of file stk11xx-dev-6a33.c.
References dev_stk11xx_camera_settings(), and dev_stk6a33_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk6a33_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 707 of file stk11xx-dev-6a33.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a33_configure_device().
int dev_stk6a33_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
0x204 = 0x2e : Fps MSB (by default 0x01) 0x204 = 0x2d : Fps LSB (by default 0x00)
0x2e | 0x2d | Nbr fps --—+---—+-----— 0x00 | 0x00 | 30 0x01 | 0x00 | 20 0x02 | 0x00 | 15 0x03 | 0x00 | 12 0x04 | 0x00 | 10
Definition at line 912 of file stk11xx-dev-6a33.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk6a33_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
0x204 = 0xa1 : unkown (by default 0x00) 0x204 = 0x10 : contrast (by default 0x7c) 0x204 = 0x04 : Mode (unknown) (by default 0x00) (=> already looked 0x01 and 0x02) 0x204 = 0x00 : brightness / white balance (by default 0x00)
Definition at line 868 of file stk11xx-dev-6a33.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stk6a33_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 928 of file stk11xx-dev-6a33.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stk6a33_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 981 of file stk11xx-dev-6a33.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_stop_stream().
int dev_stk6a51_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 716 of file stk11xx-dev-6a51.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), dev_stk6a51_init_camera(), and dev_stk6a51_initialize_device().
int dev_stk6a51_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 1429 of file stk11xx-dev-6a51.c.
Referenced by dev_stk11xx_camera_settings().
int dev_stk6a51_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 12 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 334 of file stk11xx-dev-6a51.c.
References dev_stk11xx_check_device(), dev_stk6a51_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a51_init_camera(), dev_stk6a51_initialize_device(), and dev_stk6a51_reconf_camera().
int dev_stk6a51_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 748 of file stk11xx-dev-6a51.c.
References dev_stk11xx_camera_off(), dev_stk6a51_camera_asleep(), dev_stk6a51_configure_device(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stk6a51_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-6a51.c.
References dev_stk11xx_check_device(), dev_stk6a51_camera_asleep(), dev_stk6a51_configure_device(), STK_DEBUG, STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stk6a51_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 1527 of file stk11xx-dev-6a51.c.
References dev_stk11xx_camera_settings(), and dev_stk6a51_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk6a51_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 779 of file stk11xx-dev-6a51.c.
References dev_stk11xx_check_device(), usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a51_configure_device().
int dev_stk6a51_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 1481 of file stk11xx-dev-6a51.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk6a51_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 1448 of file stk11xx-dev-6a51.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stk6a51_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 1497 of file stk11xx-dev-6a51.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stk6a51_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 1547 of file stk11xx-dev-6a51.c.
Referenced by dev_stk11xx_stop_stream().
int dev_stk6a54_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 267 of file stk11xx-dev-6a54.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep().
int dev_stk6a54_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 436 of file stk11xx-dev-6a54.c.
Referenced by dev_stk11xx_camera_settings().
int dev_stk6a54_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 12 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 149 of file stk11xx-dev-6a54.c.
References dev_stk6a54_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a54_initialize_device().
int dev_stk6a54_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 297 of file stk11xx-dev-6a54.c.
Referenced by dev_stk11xx_init_camera().
int dev_stk6a54_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-6a54.c.
References dev_stk11xx_check_device(), dev_stk6a54_configure_device(), STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stk6a54_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 501 of file stk11xx-dev-6a54.c.
References dev_stk11xx_camera_settings().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk6a54_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 313 of file stk11xx-dev-6a54.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6a54_configure_device().
int dev_stk6a54_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 470 of file stk11xx-dev-6a54.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk6a54_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 455 of file stk11xx-dev-6a54.c.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stk6a54_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 486 of file stk11xx-dev-6a54.c.
Referenced by dev_stk11xx_start_stream().
int dev_stk6a54_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 519 of file stk11xx-dev-6a54.c.
Referenced by dev_stk11xx_stop_stream().
int dev_stk6d51_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 249 of file stk11xx-dev-6d51.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), and dev_stk6d51_initialize_device().
int dev_stk6d51_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 965 of file stk11xx-dev-6d51.c.
Referenced by dev_stk11xx_camera_settings().
int dev_stk6d51_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 12 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 131 of file stk11xx-dev-6d51.c.
References dev_stk6d51_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6d51_initialize_device().
int dev_stk6d51_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 279 of file stk11xx-dev-6d51.c.
Referenced by dev_stk11xx_init_camera().
int dev_stk6d51_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-6d51.c.
References dev_stk11xx_check_device(), dev_stk6d51_camera_asleep(), dev_stk6d51_configure_device(), STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stk6d51_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 1048 of file stk11xx-dev-6d51.c.
References dev_stk11xx_camera_settings().
Referenced by dev_stk11xx_reconf_camera().
int dev_stk6d51_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 295 of file stk11xx-dev-6d51.c.
References dev_stk11xx_check_device(), usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk6d51_configure_device().
int dev_stk6d51_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 1017 of file stk11xx-dev-6d51.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stk6d51_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 984 of file stk11xx-dev-6d51.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stk6d51_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 1033 of file stk11xx-dev-6d51.c.
Referenced by dev_stk11xx_start_stream().
int dev_stk6d51_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 1066 of file stk11xx-dev-6d51.c.
Referenced by dev_stk11xx_stop_stream().
int dev_stka311_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 630 of file stk11xx-dev-a311.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), dev_stka311_init_camera(), and dev_stka311_initialize_device().
int dev_stka311_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 817 of file stk11xx-dev-a311.c.
References dev_stk11xx_check_device(), dev_stka311_set_camera_fps(), dev_stka311_set_camera_quality(), and STK_DEBUG.
Referenced by dev_stk11xx_camera_settings(), and dev_stka311_init_camera().
int dev_stka311_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 11 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
The steps 0 to 9 are called during the initialization. Then, the driver choose the last step : 10 : for a resolution from 80x60 to 640x480 11 : for a resolution from 800x600 to 1280x1024
Definition at line 392 of file stk11xx-dev-a311.c.
References dev_stk11xx_check_device(), dev_stka311_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stka311_init_camera(), dev_stka311_initialize_device(), and dev_stka311_reconf_camera().
int dev_stka311_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 660 of file stk11xx-dev-a311.c.
References dev_stk11xx_camera_off(), dev_stk11xx_check_device(), dev_stka311_camera_asleep(), dev_stka311_camera_settings(), dev_stka311_configure_device(), usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stka311_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-a311.c.
References dev_stk11xx_check_device(), dev_stka311_camera_asleep(), dev_stka311_configure_device(), STK_DEBUG, STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stka311_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 1003 of file stk11xx-dev-a311.c.
References dev_stk11xx_camera_settings(), and dev_stka311_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stka311_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 708 of file stk11xx-dev-a311.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stka311_configure_device().
int dev_stka311_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
0x204 = 0x2e : Fps MSB (by default 0x01) 0x204 = 0x2d : Fps LSB (by default 0x00)
0x2e | 0x2d | Nbr fps --—+---—+-----— 0x00 | 0x00 | 30 0x01 | 0x00 | 20 0x02 | 0x00 | 15 0x03 | 0x00 | 12 0x04 | 0x00 | 10
Definition at line 914 of file stk11xx-dev-a311.c.
References stk11xx_video::fps, usb_stk11xx_write_registry(), and usb_stk11xx::vsettings.
Referenced by dev_stk11xx_set_camera_fps(), and dev_stka311_camera_settings().
int dev_stka311_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
0x204 = 0xa1 : unkown (by default 0x00) 0x204 = 0x10 : contrast (by default 0x7c) 0x204 = 0x04 : Mode (unknown) (by default 0x00) (=> already looked 0x01 and 0x02) 0x204 = 0x00 : brightness / white balance (by default 0x00)
Definition at line 857 of file stk11xx-dev-a311.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, STK_DEBUG, usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality(), and dev_stka311_camera_settings().
int dev_stka311_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 973 of file stk11xx-dev-a311.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stka311_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 1045 of file stk11xx-dev-a311.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_stop_stream().
int dev_stka821_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
This function permits to wake-up the device.
Definition at line 581 of file stk11xx-dev-a821.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), dev_stka821_init_camera(), and dev_stka821_initialize_device().
int dev_stka821_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 736 of file stk11xx-dev-a821.c.
References stk11xx_video::contrast, dev_stk11xx_check_device(), usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), and usb_stk11xx::vsettings.
Referenced by dev_stk11xx_camera_settings(), and dev_stka821_init_camera().
int dev_stka821_configure_device | ( | struct usb_stk11xx * | dev, |
int | step | ||
) |
This function permits to configure the device.
dev | Device structure |
step | The step of configuration [0-11] |
The configuration of device is composed of 12 steps. This function is called by the initialization process.
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 315 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), dev_stka821_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stka821_init_camera(), dev_stka821_initialize_device(), and dev_stka821_reconf_camera().
int dev_stka821_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
It's the start. This function has to be called at first, before enabling the video stream.
Definition at line 611 of file stk11xx-dev-a821.c.
References dev_stk11xx_camera_off(), dev_stka821_camera_asleep(), dev_stka821_camera_settings(), dev_stka821_configure_device(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stka821_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), dev_stka821_camera_asleep(), dev_stka821_configure_device(), STK_DEBUG, STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stka821_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Before enabling the video stream, you have to reconfigure the device.
Definition at line 871 of file stk11xx-dev-a821.c.
References dev_stk11xx_camera_settings(), and dev_stka821_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stka821_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation.
Definition at line 660 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stka821_configure_device().
int dev_stka821_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the frame rate per second.
Definition at line 825 of file stk11xx-dev-a821.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stka821_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
This functions permits to modify the settings :
Definition at line 792 of file stk11xx-dev-a821.c.
References stk11xx_video::brightness, stk11xx_video::colour, stk11xx_video::contrast, dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), usb_stk11xx_write_registry(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
Referenced by dev_stk11xx_set_camera_quality().
int dev_stka821_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream.
Definition at line 841 of file stk11xx-dev-a821.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stka821_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream.
Definition at line 891 of file stk11xx-dev-a821.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_stop_stream().