11 //Adding maa_init() to the module initialisation process
15 %rename(get_version) maa_get_version();
16 const char * maa_get_version();
32 %rename(Spi) maa_spi_context;
37 int spifd; /**< File descriptor to SPI Device */
41 %nodefault maa_spi_context;
42 %extend maa_spi_context {
45 return maa_spi_init();
50 int mode(unsigned short mode)
52 return maa_spi_mode($self, mode);
56 return maa_spi_frequency($self, hz);
58 unsigned int write(unsigned int data)
60 return maa_spi_write($self, data);