Update of /cvsroot/playerstage/code/player/libplayercore/interfaces
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15262/libplayercore/interfaces

Modified Files:
        033_blinkenlight.def 
Log Message:
added chatterbox driver, fixed build bug in libplayerc/dev_vectormap.c, fixed 
shallow copy bug in libplayerc/dev_ir.c

Index: 033_blinkenlight.def
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/libplayercore/interfaces/033_blinkenlight.def,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 033_blinkenlight.def        20 Aug 2007 06:37:26 -0000      1.1
--- 033_blinkenlight.def        7 Feb 2008 02:23:00 -0000       1.2
***************
*** 1,7 ****
  description {
! @brief A blinking light
  
! The @p blinkenlight interface is used to switch on and off a flashing
! indicator light, and to set it's flash period.
  
  This interface accepts no configuration requests.
--- 1,8 ----
  description {
! @brief An indicator light
  
! The @p blinkenlight interface is used to switch on and off an
! indicator light, set its color (if supported) and to set its flash
! period and duty cycle (if supported).
  
  This interface accepts no configuration requests.
***************
*** 13,18 ****
  message { CMD, POWER, 2, player_blinkenlight_cmd_power_t };
  message { CMD, COLOR, 3, player_blinkenlight_cmd_color_t };
! message { CMD, PERIOD, 4, player_blinkenlight_cmd_period_t };
! message { CMD, DUTYCYCLE, 5, player_blinkenlight_cmd_dutycycle_t };
  
  /** @brief Data: state (@ref PLAYER_BLINKENLIGHT_DATA_STATE)
--- 14,18 ----
  message { CMD, POWER, 2, player_blinkenlight_cmd_power_t };
  message { CMD, COLOR, 3, player_blinkenlight_cmd_color_t };
! message { CMD, FLASH, 4, player_blinkenlight_cmd_flash_t };
  
  /** @brief Data: state (@ref PLAYER_BLINKENLIGHT_DATA_STATE)
***************
*** 36,44 ****
  typedef struct player_blinkenlight_cmd
  {
    /** FALSE: disabled, TRUE: enabled */
    uint8_t enable;
    /** flash period (duration of one whole on-off cycle) [s]. */
    float period;
!   /** flash duty cycle (ratio of time-on to time-off in one cycle). */
    float dutycycle;
    /** the color of the light */
--- 36,46 ----
  typedef struct player_blinkenlight_cmd
  {
+   /** identify the light we are       addressing */
+   uint16_t id;        
    /** FALSE: disabled, TRUE: enabled */
    uint8_t enable;
    /** flash period (duration of one whole on-off cycle) [s]. */
    float period;
!   /** flash duty cycle (ratio of time-on to time-off in one cycle (0.0 to 
1.0). */
    float dutycycle;
    /** the color of the light */
***************
*** 51,54 ****
--- 53,58 ----
  typedef struct player_blinkenlight_cmd_power
  {
+   /** identify the light we are       addressing */
+   uint16_t id;        
    /** FALSE: off, TRUE: on */
    uint8_t enable;
***************
*** 60,83 ****
  typedef struct player_blinkenlight_cmd_color
  {
    /** the color of the light */
    player_color_t color;
  } player_blinkenlight_cmd_color_t;
! 
! /** @brief Command: period (@ref PLAYER_BLINKENLIGHT_CMD_PERIOD)
! This @p blinkenlight command sets the duration of one on/off blink cycle in 
seconds.
  */
! typedef struct player_blinkenlight_cmd_period
  {
    /** flash period (duration of one whole on-off cycle) [s]. */
    float period;
- } player_blinkenlight_cmd_period_t;
- 
- /** @brief Command: dutycycle (@ref
- PLAYER_BLINKENLIGHT_CMD_DUTYCYCLE) This @p blinkenlight command sets
- the ratio of light-on to light-off time in one on/off blink cycle.
- */
- typedef struct player_blinkenlight_cmd_dutycycle
- {
    /** flash duty cycle (ratio of time-on to time-off in one cycle). */
!   float dutycycle;
! } player_blinkenlight_cmd_dutycycle_t;
--- 64,84 ----
  typedef struct player_blinkenlight_cmd_color
  {
+   /** identify the light we are       addressing */
+   uint16_t id;        
    /** the color of the light */
    player_color_t color;
  } player_blinkenlight_cmd_color_t;
!       
! /** @brief Command: flash (@ref PLAYER_BLINKENLIGHT_CMD_FLASH)
! This @p blinkenlight command sets the duration of one on/off blink cycle in 
seconds and the ratio of light on/off time (0.0 to 1.0 )
  */
! typedef struct player_blinkenlight_cmd_flash
  {
+   /** identify the light we are       addressing */
+   uint16_t id;        
    /** flash period (duration of one whole on-off cycle) [s]. */
    float period;
    /** flash duty cycle (ratio of time-on to time-off in one cycle). */
!   float dutycycle;  
! } player_blinkenlight_cmd_flash_t;
! 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to