as i read.. there's no CC2040 BUT CC2400

No code example from me but you'll need to study the datasheet and use SHIFTIN/SHIFTOUT command