# NASpiReadWrite

**URL:** <https://forums.digi.com/t/naspireadwrite/3442>\
**Category:** NET+OS\
**Tags:** spi, hardware\
**Created:** [July 26, 2007, 2:13pm UTC](https://forums.digi.com/t/naspireadwrite/3442 "2007-07-26T14:13:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mentzer](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mentzer](https://forums.digi.com/u/mentzer)\
**Post date:** [July 26, 2007, 2:13pm UTC](https://forums.digi.com/t/naspireadwrite/3442/1 "2007-07-26T14:13:07Z")

</div>

Hello Digi users,  
I has a question over the function NASpiReadWrite. How long is the variable bufferLength (max)?

---

<div class="post-metadata">

**Author:** ![charliek](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@charliek](https://forums.digi.com/u/charliek)\
**Post date:** [July 26, 2007, 2:22pm UTC](https://forums.digi.com/t/naspireadwrite/3442/2 "2007-07-26T14:22:23Z")

</div>

It appears to just use the buffer you pass it, the max length of a signed int is 2147483648, so I guess this would be your theoretical limit. See the actual source code in /src/bsp/devices/common/spimaster/spi\_master.c
