pub unsafe extern "C" fn csp_service_handler(
packet: *mut csp_packet_t,
)Expand description
Handle CSP service request. If the given packet is a service-request (the destination port matches one of CSP service ports #csp_service_port_t), the packet will be processed by the specific CSP service handler. The packet will either process it or free it, so this function is typically called in the last “default” clause of a switch/case statement in a CSP listener task. In order to listen to csp service ports, bind your listener to the specific services ports #csp_service_port_t or use #CSP_ANY to all ports.
@param[in] packet first packet, obtained by using csp_read()