There is a working, simple example written in Lite-C at

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/804624/an/0/page/0#Post804624

Maybe that is a good point to start. Works with A7.06 only !!!