BALTECH SDK wrapper functions reference

§ brp_get_friendly_name()

BRP_LIB brp_errcode brp_get_friendly_name ( brp_protocol  protocol,
char **  friendly_name 
)

Retrieves the friendly name of the device by traversing the protocol stack.

This function traverses the protocol stack (via base_protocol chain) and returns the first non-NULL friendly_name found. This allows retrieving device-specific names (like USB product names) regardless of protocol stack configuration.

Parameters
protocolProtocol handle to query
friendly_nameOutput parameter for the friendly name string. Set to NULL if not available in any layer.
Returns
BRP_OK on success, BRP_ERR_INVALID_API_CALL if parameters are NULL