12 CameraInterfacePWM::CameraInterfacePWM():
21 CameraInterfacePWM::~CameraInterfacePWM()
27 void CameraInterfacePWM::setup()
30 uint8_t pin_bitmask = 0;
34 pin_bitmask |= (1 <<
_pins[i]);
50 void CameraInterfacePWM::trigger(
bool trigger_on_true)
62 PX4_INFO(
"PWM trigger mode (generic), pins enabled : [%d][%d][%d][%d][%d][%d]",
__EXPORT void up_pwm_trigger_deinit(void)
De-initialise the PWM trigger outputs.
constexpr _Tp constrain(_Tp val, _Tp min_val, _Tp max_val)
Interface with cameras via pwm.
__EXPORT int param_get(param_t param, void *val)
Copy the value of a parameter.
int info()
Print a little info about the driver.
void get_pins()
get the hardware configuration
Global flash based parameter store.
__EXPORT param_t param_find(const char *name)
Look up a parameter by name.
__BEGIN_DECLS __EXPORT int up_pwm_trigger_init(uint32_t channel_mask)
Intialise the PWM servo outputs using the specified configuration.
__EXPORT int up_pwm_trigger_set(unsigned channel, uint16_t value)
Set the current output value for a channel.
virtual void setup()
setup the interface