~tuomasjjrasanen/libm210/master

« back to all changes in this revision

Viewing changes to src/dev.h

  • Committer: Tuomas Jorma Juhani Räsänen
  • Date: 2011-12-22 19:02:26 UTC
  • Revision ID: git-v1:2df22e9635e3ed53ccdcdbc8f88bf1933422e058
Code formatting: clear whitespace, tabify, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  Copyright © 2011 Tuomas Jorma Juhani Räsänen
3
 
 
4
 
  This program is free software: you can redistribute it and/or modify
5
 
  it under the terms of the GNU General Public License as published by
6
 
  the Free Software Foundation, either version 3 of the License, or
7
 
  (at your option) any later version.
8
 
 
9
 
  This program is distributed in the hope that it will be useful,
10
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
  GNU General Public License for more details.
13
 
 
14
 
  You should have received a copy of the GNU General Public License
15
 
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
*/
 
1
/* libm210
 
2
 * Copyright (C) 2011 Tuomas Jorma Juhani Räsänen
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation, either version 3 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 */
17
17
 
18
18
#ifndef DEV_H
19
19
#define DEV_H
31
31
struct m210_dev;
32
32
 
33
33
struct m210_dev_info {
34
 
        uint16_t firmware_version;
35
 
        uint16_t analog_version;
36
 
        uint16_t pad_version;
37
 
        uint8_t mode;
38
 
        uint32_t used_memory;
 
34
        uint16_t firmware_version;
 
35
        uint16_t analog_version;
 
36
        uint16_t pad_version;
 
37
        uint8_t mode;
 
38
        uint32_t used_memory;
39
39
};
40
40
 
41
41
enum m210_err m210_dev_connect(struct m210_dev **dev_ptr_ptr);
43
43
enum m210_err m210_dev_disconnect(struct m210_dev **dev_ptr_ptr);
44
44
 
45
45
enum m210_err m210_dev_get_info(struct m210_dev *dev_ptr,
46
 
                                struct m210_dev_info *info_ptr);
 
46
                                struct m210_dev_info *info_ptr);
47
47
 
48
48
enum m210_err m210_dev_download_notes(struct m210_dev *dev_ptr, FILE *file);
49
49