def _generate_config(self):
config = bytearray([<NUM_LIT>] * <NUM_LIT>)<EOL>config[<NUM_LIT:0>] = <NUM_LIT><EOL>config[<NUM_LIT:1>] = <NUM_LIT><EOL>config[<NUM_LIT:2>] = <NUM_LIT><EOL>config[<NUM_LIT:3>] = <NUM_LIT><EOL>config[<NUM_LIT:4>] = <NUM_LIT><EOL>config[<NUM_LIT:5>] = <NUM_LIT><EOL>config[<NUM_LIT:6>] = <NUM_LIT><EOL>config[<NUM_LIT:10>] = self._config.get('<STR_LIT>', <NUM_LIT:0>)<EOL>config[<NUM_LIT:11>] = self._config.get('<STR_LIT>', <NUM_LIT:0>)<EOL>config[<NUM_LIT:12>] = self._config.get('<STR_LIT>', <NUM_LIT:0>)<EOL>config[<NUM_LIT:16>] = self._config.get('<STR_LIT>', <NUM_LIT:0>)<EOL>config[<NUM_LIT>] = self._config.get('<STR_LIT>', <NUM_LIT:0>)<EOL>if self._config.get('<STR_LIT>', <NUM_LIT:0>) > <NUM_LIT:0>:<EOL><INDENT>config[<NUM_LIT>] = <NUM_LIT:1><EOL><DEDENT>config[<NUM_LIT>] = self._config.get('<STR_LIT>', <NUM_LIT:0>)<EOL>config[<NUM_LIT>] = sum([b for b in config[:<NUM_LIT>]]) & <NUM_LIT><EOL>return bytes(config)<EOL>
Generate a configuration that can be sent to the Hottop roaster.

        Configuration settings need to be represented inside of a byte array
        that is then written to the serial interface. Much of the configuration
        is static, but control settings are also included and pulled from the
        shared dictionary.

        :returns: Byte array of the prepared configuration.