https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 671bb8cbd55451d31c5497ac268f5605d656fc5a authored by Daniel Fort on 28 April 2019, 11:21:42 UTC
Merged in kitorPL/magic-lantern/kitor/eosr_120 (pull request #959)
Tip revision: 671bb8c
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(1, 3); }
void set_htp(int value) { SetCFnData(1, 3, value); }

int get_alo() { return GetCFnData(1, 4); }
void set_alo(int value) { SetCFnData(1, 4, value); }

int get_mlu() { return GetCFnData(2, 6); }
void set_mlu(int value) { SetCFnData(2, 6, value); }

int cfn_get_af_button_assignment() { return GetCFnData(3, 1); }
void cfn_set_af_button(int value) { SetCFnData(3, 1, value); }

int get_af_star_swap() { return GetCFnData(3, 2); }
void set_af_star_swap(int value) { SetCFnData(3, 2, value); }
back to top