https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: c94ff1d3f4d31e574615ff1517c5690c4637e3a3 authored by a1ex on 26 September 2014, 07:45:06 UTC
Close branch features.
Tip revision: c94ff1d
cfn.c
#include <dryos.h>
#include <property.h>

// look on camera menu or review sites to get custom function numbers.

int get_htp() { return GetCFnData(0, 6); }
void set_htp(int value) { SetCFnData(0, 6, value); }

// ALO is a CFn on the 500d :)
int get_alo() { return GetCFnData(0, 7); }
void set_alo(int value) { SetCFnData(0, 7, value); }

int get_mlu() { return GetCFnData(0, 9); }
void set_mlu(int value) { SetCFnData(0, 9, value); }

int cfn_get_af_button_assignment() { return GetCFnData(0, 10); }
void cfn_set_af_button(int value) { SetCFnData(0, 10, value); }
back to top