OpenOCD
jep106.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2015 Andreas Fritiofson *
5  * andreas.fritiofson@gmail.com *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_HELPER_JEP106_H
9 #define OPENOCD_HELPER_JEP106_H
10 
19 const char *jep106_table_manufacturer(unsigned int bank, unsigned int id);
20 
21 static inline const char *jep106_manufacturer(unsigned int manufacturer)
22 {
23  return jep106_table_manufacturer(manufacturer >> 7, manufacturer & 0x7f);
24 }
25 
26 #endif /* OPENOCD_HELPER_JEP106_H */
uint8_t bank
Definition: esirisc.c:135
static const char * jep106_manufacturer(unsigned int manufacturer)
Definition: jep106.h:21
const char * jep106_table_manufacturer(unsigned int bank, unsigned int id)
Get the manufacturer name associated with a JEP106 ID.
Definition: jep106.c:19