subrascasse

Sub Rascasse: an iPhone dive log for Subsurface cloud storage, with a pure-Swift git client (GPL-2.0)
git clone https://git.schurger.org/subrascasse.git
Log | Files | Refs | README | LICENSE

hw_ostc3.h (2011B)


      1 /*
      2  * libdivecomputer
      3  *
      4  * Copyright (C) 2013 Jef Driesen
      5  *
      6  * This library is free software; you can redistribute it and/or
      7  * modify it under the terms of the GNU Lesser General Public
      8  * License as published by the Free Software Foundation; either
      9  * version 2.1 of the License, or (at your option) any later version.
     10  *
     11  * This library is distributed in the hope that it will be useful,
     12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14  * Lesser General Public License for more details.
     15  *
     16  * You should have received a copy of the GNU Lesser General Public
     17  * License along with this library; if not, write to the Free Software
     18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
     19  * MA 02110-1301 USA
     20  */
     21 
     22 #ifndef DC_HW_OSTC3_H
     23 #define DC_HW_OSTC3_H
     24 
     25 #include <stdbool.h>
     26 
     27 #include "common.h"
     28 #include "device.h"
     29 #include "datetime.h"
     30 
     31 #ifdef __cplusplus
     32 extern "C" {
     33 #endif /* __cplusplus */
     34 
     35 #define HW_OSTC3_DISPLAY_SIZE    16
     36 #define HW_OSTC3_CUSTOMTEXT_SIZE 60
     37 
     38 #define HW_FROG_DISPLAY_SIZE     15
     39 #define HW_FROG_CUSTOMTEXT_SIZE  13
     40 
     41 dc_status_t
     42 hw_ostc3_device_version (dc_device_t *device, unsigned char data[], unsigned int size);
     43 
     44 dc_status_t
     45 hw_ostc3_device_hardware (dc_device_t *device, unsigned char data[], unsigned int size);
     46 
     47 dc_status_t
     48 hw_ostc3_device_display (dc_device_t *device, const char *text);
     49 
     50 dc_status_t
     51 hw_ostc3_device_customtext (dc_device_t *device, const char *text);
     52 
     53 dc_status_t
     54 hw_ostc3_device_config_read (dc_device_t *abstract, unsigned int config, unsigned char data[], unsigned int size);
     55 
     56 dc_status_t
     57 hw_ostc3_device_config_write (dc_device_t *abstract, unsigned int config, const unsigned char data[], unsigned int size);
     58 
     59 dc_status_t
     60 hw_ostc3_device_config_reset (dc_device_t *abstract);
     61 
     62 dc_status_t
     63 hw_ostc3_device_fwupdate (dc_device_t *abstract, const char *filename, bool forceUpdate);
     64 
     65 #ifdef __cplusplus
     66 }
     67 #endif /* __cplusplus */
     68 #endif /* DC_HW_OSTC3_H */