# Working on spidev.h and spidev.c translation

**URL:** https://discourse.julialang.org/t/working-on-spidev-h-and-spidev-c-translation/6479
**Category:** General Usage
**Created:** [October 16, 2017, 4:42pm UTC](https://discourse.julialang.org/t/working-on-spidev-h-and-spidev-c-translation/6479 "2017-10-16T16:42:55Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)
#### Post date: [October 19, 2017, 3:14pm UTC](https://discourse.julialang.org/t/working-on-spidev-h-and-spidev-c-translation/6479/12 "2017-10-19T15:14:08Z")

</div>

Your issue is that `spi.mode` is passed as reference but not as a reference to the field.

I’ve explained this in [Properly using `finalizer`, `ccall`, `cconvert` and `unsafe_convert` - #14 by anon61610682](https://discourse.julialang.org/t/properly-using-finalizer-ccall-cconvert-and-unsafe-convert/6183/14)

---

_[View the full topic](https://discourse.julialang.org/t/working-on-spidev-h-and-spidev-c-translation/6479)._
