https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: fd7c8ea250ea41c65a418091fbfc596c1ede905a authored by a1ex on 14 May 2014, 11:49:12 UTC
Close branch Help_text
Tip revision: fd7c8ea
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); }

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

int cfn_get_af_button_assignment() { return GetCFnData(0, 9); }
void cfn_set_af_button(int value) { SetCFnData(0, 9, value); }

// on some cameras, ALO is CFn
PROP_INT(PROP_ALO, alo);
int get_alo() { return alo; }

void set_alo(int value)
{
	value = COERCE(value, 0, 3);
	prop_request_change(PROP_ALO, &value, 4);
}
back to top