Effectively deleted old dictionary call function/files.
Created lua_usb_vend_xfr function so lua can directly send and receive
vendor setup transfers.
Dictionary calls are more like function calls now, and all args aren't
required so the LED can be turned on for example in lua like so:
dict_pinport("LED_ON")
general format is:
dict_name( opcode, operand, misc, datastring )
Also added ability to store opcode's return length in shared dict library
files with RL=number in the comments following the opcode.
Negative numbers designate OUT transfers, positive for IN.
Default value can be determined by each dictionary's calling function.
Decided pinport is 1 for SUCCESS/ERROR CODE.
Also have default return data means with second byte giving length of
return data in bytes that follows.
dictionary call function reports any errors reported by the device and
returns any return data from the device excluding error code / data len
Now time to start implementing some of these dictionaries on the device.
|
||
|---|---|---|
| .. | ||
| shared_dict_buffer.h | ||
| shared_dict_io.h | ||
| shared_dict_nes.h | ||
| shared_dict_operation.h | ||
| shared_dict_pinport.h | ||
| shared_dict_snes.h | ||
| shared_dict_usb.h | ||
| shared_dictionaries.h | ||
| shared_enums.h | ||
| shared_errors.h | ||
| shared_usb.h | ||