]> git.sur5r.net Git - openocd/blob - src/helper/jep106.h
helper: Add converter from JEP106 ID to manufacturer name
[openocd] / src / helper / jep106.h
1 /***************************************************************************
2  *   Copyright (C) 2015 Andreas Fritiofson                                 *
3  *   andreas.fritiofson@gmail.com                                          *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  ***************************************************************************/
15
16 #ifndef JEP106_H
17 #define JEP106_H
18
19 /**
20  * Get the manufacturer name associated with a JEP106 ID.
21  * @param bank The bank (number of continuation codes) of the manufacturer ID.
22  * @param id The 7-bit manufacturer ID (i.e. with parity stripped).
23  * @return A pointer to static const storage containing the name of the
24  *         manufacturer associated with bank and id, or one of the strings
25  *         "<invalid>" and "<unknown>".
26  */
27 const char *jep106_manufacturer(unsigned bank, unsigned id);
28
29 #endif