scbconfig.c

Go to the documentation of this file.
00001 /*
00002  * File Name: scbconfig.c
00003  */
00004 
00005 /*
00006  * This file is part of liberscribble.
00007  *
00008  * liberscribble is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * liberscribble is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 /**
00023  * Copyright (C) 2008 iRex Technologies B.V.
00024  * All rights reserved.
00025  */
00026 
00027 
00028 //----------------------------------------------------------------------------
00029 // Include Files
00030 //----------------------------------------------------------------------------
00031 
00032 // system include files, between < >
00033 
00034 // ereader include files, between < >
00035 
00036 // local include files, between " "
00037 #include "scbconfig.h"
00038 
00039 
00040 //----------------------------------------------------------------------------
00041 // Type Declarations
00042 //----------------------------------------------------------------------------
00043 
00044 
00045 //----------------------------------------------------------------------------
00046 // Global Constants
00047 //----------------------------------------------------------------------------
00048 
00049 
00050 //----------------------------------------------------------------------------
00051 // Static Variables
00052 //----------------------------------------------------------------------------
00053 
00054 static ScbDriverDrawParam s_driver_draw_param;
00055 
00056 
00057 //============================================================================
00058 // Local Function Definitions
00059 //============================================================================
00060 
00061 
00062 //============================================================================
00063 // Functions Implementation
00064 //============================================================================
00065 
00066 void erscribble_cfg_init_driver_draw_param()
00067 {
00068     s_driver_draw_param.time  = ERSCRIBBLE_DEF_DRIVER_DRAW_TIME;
00069     s_driver_draw_param.count = ERSCRIBBLE_DEF_DRIVER_DRAW_COUNT;
00070 }
00071 
00072 
00073 void erscribble_cfg_set_driver_draw_param(ScbDriverDrawParamPtr ptr)
00074 {
00075     if (ptr)
00076     {
00077         s_driver_draw_param.time  = ptr->time;
00078         s_driver_draw_param.count = ptr->count;
00079     }
00080 }
00081 
00082 
00083 void erscribble_cfg_get_driver_draw_param(ScbDriverDrawParamPtr ptr)
00084 {
00085     if (ptr)
00086     {
00087         ptr->time  = s_driver_draw_param.time;
00088         ptr->count = s_driver_draw_param.count;
00089     }
00090 }
Generated by  doxygen 1.6.2-20100208