BALTECH SDK wrapper functions reference
ioiter.h File Reference

This file defines the iterator API for enumerating available I/O devices. More...

#include "common.h"
#include "protocol.h"

Go to the source code of this file.

Data Structures

struct  brp_ioiter_t
 Base structure for I/O device iterators. More...
 

Typedefs

typedef struct brp_ioiter_tbrp_ioiter
 Handle to an I/O device iterator. More...
 

Functions

BRP_LIB brp_ioiter brp_ioiter_create (void)
 Creates an iterator for enumerating all available I/O devices. More...
 
BRP_LIB brp_errcode brp_ioiter_next (brp_ioiter iter, brp_protocol *protocol)
 Retrieves the next device from the iterator. More...
 
BRP_LIB void brp_ioiter_destroy (brp_ioiter *iter)
 Destroys an iterator and frees all associated resources. More...
 

Detailed Description

This file defines the iterator API for enumerating available I/O devices.

The iterator allows discovering BRP-compatible devices (currently USB HID) and creating protocol objects for each discovered device.

Definition in file ioiter.h.