18 #if !defined(_usb_h_) || defined(__PARSETOOLS_H__)
19 #error "Never include parsetools.h directly; include Usb.h instead"
21 #define __PARSETOOLS_H__
26 } __attribute__((packed));
43 pBuf = (uint8_t*) pbuf->
pValue;
47 bool Parse(uint8_t **pp, uint16_t *pcntdn);
61 pBuf = (uint8_t*) pbuf->
pValue;
65 bool Skip(uint8_t **pp, uint16_t *pcntdn, uint16_t bytes_to_skip) {
68 countDown = bytes_to_skip;
71 for(; countDown && (*pcntdn); countDown--, (*pp)++, (*pcntdn)--);
127 arLenCntdn = arLen = 3;
130 arLenCntdn = arLen = 0;
140 #endif // __PARSETOOLS_H__
const uint8_t * GetBuffer()
bool Skip(uint8_t **pp, uint16_t *pcntdn, uint16_t bytes_to_skip)
void Initialize(MultiValueBuffer *pbuf)
bool Parse(uint8_t **pp, uint16_t *pcntdn)
void Initialize(const uint8_t len_size, const uint8_t val_size, MultiValueBuffer *const p, const uint8_t mode=modeArray)
void Initialize(MultiValueBuffer *const pbuf)
bool Parse(uint8_t **pp, uint16_t *pcntdn, PTP_ARRAY_EL_FUNC pf, const void *me=NULL)