Skip to content

Commit f640163

Browse files
authored
Merge pull request hathach#1969 from hathach/fix-tmc488-bit-order-1658
Fix tmc488 bit order 1658
2 parents ad7bacb + 096da11 commit f640163

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/class/usbtmc/usbtmc.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -262,32 +262,32 @@ typedef struct TU_ATTR_PACKED
262262

263263
struct TU_ATTR_PACKED
264264
{
265-
unsigned int listenOnly :1;
266-
unsigned int talkOnly :1;
267-
unsigned int supportsIndicatorPulse :1;
265+
uint8_t listenOnly :1;
266+
uint8_t talkOnly :1;
267+
uint8_t supportsIndicatorPulse :1;
268268
} bmIntfcCapabilities;
269269

270270
struct TU_ATTR_PACKED
271271
{
272-
unsigned int canEndBulkInOnTermChar :1;
272+
uint8_t canEndBulkInOnTermChar :1;
273273
} bmDevCapabilities;
274274

275275
uint8_t _reserved2[6];
276276
uint16_t bcdUSB488;
277277

278278
struct TU_ATTR_PACKED
279279
{
280-
unsigned int is488_2 :1;
281-
unsigned int supportsREN_GTL_LLO :1;
282-
unsigned int supportsTrigger :1;
280+
uint8_t supportsTrigger :1;
281+
uint8_t supportsREN_GTL_LLO :1;
282+
uint8_t is488_2 :1;
283283
} bmIntfcCapabilities488;
284284

285285
struct TU_ATTR_PACKED
286286
{
287-
unsigned int SCPI :1;
288-
unsigned int SR1 :1;
289-
unsigned int RL1 :1;
290-
unsigned int DT1 :1;
287+
uint8_t DT1 :1;
288+
uint8_t RL1 :1;
289+
uint8_t SR1 :1;
290+
uint8_t SCPI :1;
291291
} bmDevCapabilities488;
292292
uint8_t _reserved3[8];
293293
} usbtmc_response_capabilities_488_t;

0 commit comments

Comments
 (0)