pub fn get_function(data: &[u8]) -> (Option<ModbusFunction>, Option<&[u8]>)
Gets the function code of the given modbus data.
None is returned if data contains less than 1 byte