This commit adds a new API to idol::Generator to add a list of additional traits to derive for the generated Operation enum type. This is motivated by the desire to derive counters::Count for the SpiOperation enum, as it's used in ringbuf entries in drv-stm32xx-spi-server-core, which I would like to be able to count occurences of. But, it may be useful for other purposes as well.
This commit adds a new API to
idol::Generator
to add a list of additional traits to derive for the generatedOperation
enum type. This is motivated by the desire to derivecounters::Count
for theSpiOperation
enum, as it's used in ringbuf entries indrv-stm32xx-spi-server-core
, which I would like to be able to count occurences of. But, it may be useful for other purposes as well.