Hello, i want to use the MCP2515 microchip for CAN communication. Unfortunately i can't use the included kernelheader <linux/spi/spi.h>, because it's a custom spi-driver. To read the SPI i simply call a function with three parameters: struct of the spi-configuration(CS,bit length, Mastermode, ...), a char destination_register and a short data-buffer to read data. To write the SPI i call another function with three parameters: struct of the spi-configuration(CS,bit length, Mastermode, ...), a char destination_register and a short data field to write data.
Can i just call my spi transfer functions inside the functions mcp251x_read_reg(struct spi_device *spi, uint8_t reg) and mcp251x_write_reg(struct spi_device *spi, u8 reg, uint8_t val) and everything in CANSocket works fine? -- NEU: FreePhone - kostenlos mobil telefonieren! Jetzt informieren: http://www.gmx.net/de/go/freephone _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
