pub unsafe extern "C" fn _gnrc_netapi_get_set(
    pid: kernel_pid_t,
    opt: netopt_t,
    context: u16,
    data: *mut c_void,
    data_len: size_t,
    type_: u16
) -> c_int
Expand description

@brief Shortcut function for sending @ref GNRC_NETAPI_MSG_TYPE_GET or @ref GNRC_NETAPI_MSG_TYPE_SET messages and parsing the returned @ref GNRC_NETAPI_MSG_TYPE_ACK message

@param[in] pid PID of the targeted network module @param[in] opt option to get @param[in] context (optional) context to the given option @param[in] data pointer to buffer for reading the option’s value @param[in] data_len (maximum) number of bytes in @p data @param[in] type type of the message to send. Must be either @ref GNRC_NETAPI_MSG_TYPE_GET or @ref GNRC_NETAPI_MSG_TYPE_SET

@return value returned by the @ref GNRC_NETAPI_MSG_TYPE_ACK message i.e. the actual length of the resulting data on success, a negative errno on error. The actual error value is for the implementation to decide but should be sensible to indicate what went wrong.