25 #if !defined(_usb_h_) || defined(__PARSETOOLS_H__)
26 #error "Never include parsetools.h directly; include Usb.h instead"
28 #define __PARSETOOLS_H__
33 } __attribute__((packed));
50 pBuf = (uint8_t*)pbuf->
pValue;
54 bool Parse(uint8_t **pp, uint16_t *pcntdn);
68 pBuf = (uint8_t*)pbuf->
pValue;
72 bool Skip(uint8_t **pp, uint16_t *pcntdn, uint16_t bytes_to_skip) {
75 countDown = bytes_to_skip;
78 for(; countDown && (*pcntdn); countDown--, (*pp)++, (*pcntdn)--);
134 arLenCntdn = arLen = 3;
137 arLenCntdn = arLen = 0;
147 #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)