Modify SPI

Hello everyone

Is it possible to use the SPI Library for more than 8 bit ICs? I sawin the SPI library (here is the content of the library http://arduino.cc/forum/index.php/topic,115856.0.html) that tha author used datatype the uint8_t also known as the type byte. If I replace uint8_t thru uint16_t. Does it make any sense. Would the SPI library work fine with a 16bit IC?

thanks in ahead

SPI works fine with 16 bit device, you just to send out 2 bytes. For example:

digitalWrite (SS, LOW);
SPI.transfer(highByte (your_16_bit_data));
SPI.transfer(lowByte (your_16_bit_data));
digitalWrite (SS, HIGH);

And how can I send to 5 16-bit ICs? I'm sorry for this silly question, but I'm not familiar with SPI. thanks

Uptown:
And how can I send to 5 16-bit ICs? I'm sorry for this silly question, but I'm not familiar with SPI. thanks

Here is one way:

const unsigned int myData[5] = {452, 34534, 4235, 567, 41324};

digitalWrite (SS, LOW);
for (int i=0; i<5; i++)
    {
    SPI.transfer(highByte (myData[i]));
    SPI.transfer(lowByte (myData[i]));
    }
digitalWrite (SS, HIGH);

that is perfect. thank you very much