def METHOD_NAME(self, fc_as_hex, address, values):
    """Set the datastore with the supplied values."""
    group_fx = self.decode(fc_as_hex)
    if fc_as_hex in self._write_fc:
        func_fc = self.__set_callbacks[f"{group_fx}{fc_as_hex}"]
        if fc_as_hex in {0x0F, 0x10}:
            self.result = func_fc(address, values)
        else:
            self.result = func_fc(address, values[0])
    if self.result.isError():
        return self.result
    return None