25 #if !defined(_usb_h_) || defined(__PARSETOOLS_H__) 26 #error "Never include parsetools.h directly; include Usb.h instead" 28 #define __PARSETOOLS_H__ 38 } __attribute__((packed));
55 pBuf = (uint8_t*)pbuf->
pValue;
59 bool Parse(uint8_t **pp, uint16_t *pcntdn);
73 pBuf = (uint8_t*)pbuf->
pValue;
77 bool Skip(uint8_t **pp, uint16_t *pcntdn, uint16_t bytes_to_skip) {
80 countDown = bytes_to_skip;
84 for(; countDown && (*pcntdn); countDown--, (*pp)++, (*pcntdn)--);
139 if(prsMode == modeRange) {
140 arLenCntdn = arLen = 3;
143 arLenCntdn = arLen = 0;
150 bool Parse(uint8_t **pp, uint16_t *pcntdn,
PTP_ARRAY_EL_FUNC pf,
const void *me = NULL);
153 #endif // __PARSETOOLS_H__
const uint8_t * GetBuffer()
bool Skip(uint8_t **pp, uint16_t *pcntdn, uint16_t bytes_to_skip)
void Initialize(MultiValueBuffer *pbuf)
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)