OpaquePointer

extension OpaquePointer

Task wrappers around various CPP functions with callbacks

  • Tasky interface to reading a MetaWear data signal mbl_mw_datasignal_subscribe Read signal

    Declaration

    Swift

    public func read() -> Task<MetaWearData>
  • Tasky interface to mbl_mw_datasignal_log Log signal

    Declaration

    Swift

    public func datasignalLog() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_accounter_create_count Add timer to packet

    Declaration

    Swift

    public func accounterCreate() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_accounter_create_count Add counter to packet

    Declaration

    Swift

    public func accounterCreateCount() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_accounter_create Continuous sum

    Declaration

    Swift

    public func accumulatorCreate() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_accumulator_create_size Continuous sum

    Declaration

    Swift

    public func accumulatorCreateWithSize(size: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_counter_create Counter

    Declaration

    Swift

    public func counterCreate() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_counter_create_size Counter with size

    Declaration

    Swift

    public func counterCreateWithSize(size: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_average_create Create an averager

    Declaration

    Swift

    public func averagerCreate(size: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_highpass_create Create a high pass filter

    Declaration

    Swift

    public func highpassFilterCreate(size: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_lowpass_create Create a low pass filter

    Declaration

    Swift

    public func lowpassFilterCreate(size: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_buffer_create Buffer

    Declaration

    Swift

    public func bufferCreate() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_rms_create RMS

    Declaration

    Swift

    public func rmsCreate() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_rss_create RSS

    Declaration

    Swift

    public func rssCreate() -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_multi_comparator_create Compare

    Declaration

    Swift

    public func simpleComparatorCreate(op: MblMwComparatorOperation, reference: Float) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_multi_comparator_create Compare

    Declaration

    Swift

    public func comparatorCreate(op: MblMwComparatorOperation, mode: MblMwComparatorMode, references: [Float]) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_delta_create Change

    Declaration

    Swift

    public func deltaCreate(mode: MblMwDeltaMode, magnitude: Float) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_math_create Simple math ops

    Declaration

    Swift

    public func mathCreate(op: MblMwMathOperation, rhs: Float, signed: Bool? = nil) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_packer_create Pack

    Declaration

    Swift

    public func packerCreate(count: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_passthrough_create Passthrough

    Declaration

    Swift

    public func passthroughCreate(mode: MblMwPassthroughMode, count: UInt16) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_pulse_create Pulse detector

    Declaration

    Swift

    public func pulseCreate(operation: MblMwPulseOutput, threshold: Float, width: UInt16) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_sample_create Sample

    Declaration

    Swift

    public func sampleCreate(binSize: UInt8) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_threshold_create

    Declaration

    Swift

    public func thresholdCreate(mode: MblMwThresholdMode, boundary: Float, hysteresis: Float) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_dataprocessor_fuser_create

    Declaration

    Swift

    public func fuserCreate(with: OpaquePointer) -> Task<OpaquePointer>
  • Tasky interface to mbl_mw_event_end_record

    Declaration

    Swift

    public func eventEndRecord() -> Task<()>
  • Reset the device to factory defaults

    Declaration

    Swift

    public func clearAndReset()
  • Tasky interface to mbl_mw_macro_end_record

    Declaration

    Swift

    public func macroEndRecord() -> Task<Int32>
  • Tasky interface to mbl_mw_metawearboard_create_anonymous_datasignals

    Declaration

    Swift

    public func createAnonymousDatasignals() -> Task<[OpaquePointer]>
  • Tasky interface to mbl_mw_timer_create

    Declaration

    Swift

    public func timerCreate(period: UInt32, repetitions: UInt16 = 0xFFFF, immediateFire: Bool = false) -> Task<OpaquePointer>