mirror of
https://github.com/google/pebble.git
synced 2025-05-29 14:33:12 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
29
third_party/helper_worker/helper_worker.h
vendored
Normal file
29
third_party/helper_worker/helper_worker.h
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "constants_worker.h"
|
||||
#include "util/trig.h"
|
||||
#include "system/logging.h"
|
||||
|
||||
|
||||
int16_t pow_int(int16_t x, int16_t y);
|
||||
|
||||
|
||||
uint32_t isqrt(uint32_t x);
|
||||
|
||||
int32_t integral_abs(int16_t *d, int16_t srti, int16_t endi);
|
||||
|
||||
int32_t integral_l2(int16_t *d, int16_t srti, int16_t endi);
|
||||
|
||||
uint8_t get_angle_i(int16_t x, int16_t y, uint8_t n_ang );
|
||||
|
||||
// actigraphy functions
|
||||
|
||||
uint8_t orient_encode(int16_t *mean_ary, uint8_t n_ang);
|
||||
|
||||
void fft_mag(int16_t *d, int16_t dlenpwr);
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue