Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
ICM20948
ICM20948
Class ICM20948
Hierarchy
I2cPartsAbstract
ICM20948
Implements
ObnizPartsInterface
ObnizPartsInterface
Index
Constructors
constructor
Properties
address
g
keys
params
required
Keys
Methods
accel
Fs
accel
Sf
acceleration
Wait
calibrate
Wait
char2short
clear
Flag
Wait
gyro
Fs
gyro
Sf
gyro
Wait
i2c
Info
init
Wait
magnetic
Wait
read
Wait
whoami
Wait
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
Object literals
i2cinfo
Constructors
constructor
new ICM20948
(
)
:
ICM20948
Returns
ICM20948
Properties
address
address
:
any
g
g
:
number
= 9.80665
keys
keys
:
string
[]
params
params
:
any
required
Keys
required
Keys
:
string
[]
Methods
accel
Fs
accel
Fs
(
value
:
string
)
:
void
Parameters
value:
string
Returns
void
accel
Sf
accel
Sf
(
value
:
string
)
:
void
Parameters
value:
string
Returns
void
acceleration
Wait
acceleration
Wait
(
)
:
Promise
<
[
number
,
number
,
number
]
>
Returns
Promise
<
[
number
,
number
,
number
]
>
calibrate
Wait
calibrate
Wait
(
)
:
Promise
<
{
offset
:
[
number
,
number
,
number
]
;
scale
:
[
number
,
number
,
number
]
}
>
Returns
Promise
<
{
offset
:
[
number
,
number
,
number
]
;
scale
:
[
number
,
number
,
number
]
}
>
char2short
char2short
(
val1
:
number
, val2
:
number
)
:
any
Parameters
val1:
number
val2:
number
Returns
any
clear
Flag
Wait
clear
Flag
Wait
(
address
:
number
, index
:
number
)
:
Promise
<
void
>
Parameters
address:
number
index:
number
Returns
Promise
<
void
>
gyro
Fs
gyro
Fs
(
value
:
string
)
:
void
Parameters
value:
string
Returns
void
gyro
Sf
gyro
Sf
(
value
:
string
)
:
void
Parameters
value:
string
Returns
void
gyro
Wait
gyro
Wait
(
)
:
Promise
<
[
number
,
number
,
number
]
>
Returns
Promise
<
[
number
,
number
,
number
]
>
i2c
Info
i2c
Info
(
)
:
I2cInfo
Returns
I2cInfo
init
Wait
init
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
magnetic
Wait
magnetic
Wait
(
)
:
Promise
<
[
number
,
number
,
number
]
>
Returns
Promise
<
[
number
,
number
,
number
]
>
read
Wait
read
Wait
(
command
:
number
, length
:
number
)
:
Promise
<
number
[]
>
Parameters
command:
number
length:
number
Returns
Promise
<
number
[]
>
whoami
Wait
whoami
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
write
write
(
command
:
any
, buf
:
any
)
:
void
Parameters
command:
any
buf:
any
Returns
void
write
Flag
Wait
write
Flag
Wait
(
address
:
number
, index
:
number
)
:
Promise
<
void
>
Parameters
address:
number
index:
number
Returns
Promise
<
void
>
Static
char
Array
ToInt16
char
Array
ToInt16
(
values
:
[
number
,
number
]
, endian
?:
string
)
:
number
Parameters
values:
[
number
,
number
]
Default value
endian:
string
= "b"
Returns
number
Static
char
Array
ToXyz
char
Array
ToXyz
(
data
:
number
[]
, endian
?:
string
, scaleFunc
?:
(Anonymous function)
)
:
Xyz
Parameters
data:
number
[]
Default value
endian:
string
= "b"
Default value
scaleFunc:
(Anonymous function)
= (d: number): number => d
Returns
Xyz
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Object literals
i2cinfo
i2cinfo
:
object
address
address
:
number
= 105
clock
clock
:
number
= 100000
pull
pull
:
"3v"
= "3v"
voltage
voltage
:
"3v"
= "3v"
Globals
ICM20948
constructor
address
g
keys
params
required
Keys
accel
Fs
accel
Sf
acceleration
Wait
calibrate
Wait
char2short
clear
Flag
Wait
gyro
Fs
gyro
Sf
gyro
Wait
i2c
Info
init
Wait
magnetic
Wait
read
Wait
whoami
Wait
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
i2cinfo
ICM20948
Options
Generated using
TypeDoc