1
0
Fork 0
mirror of https://github.com/chirimen-oh/node-web-i2c.git synced 2025-04-04 04:06:24 +00:00

レビュー指摘事項反映

This commit is contained in:
akihiko.kigure 2022-01-25 00:33:36 +09:00
parent 351cd84f8d
commit 7ecc70725e

View file

@ -105,7 +105,7 @@ export class I2CPort {
slaveAddress, slaveAddress,
/** /**
* @function * @function
* I2c s/I2c/I2C * I2C
* @param registerNumber * @param registerNumber
*/ */
read8: (registerNumber) => read8: (registerNumber) =>
@ -114,7 +114,7 @@ export class I2CPort {
}), }),
/** /**
* @function * @function
* I2c s/I2c/I2C * I2C
* @param registerNumber * @param registerNumber
*/ */
read16: (registerNumber) => read16: (registerNumber) =>
@ -137,7 +137,7 @@ export class I2CPort {
}, },
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* @param registerNumber * @param registerNumber
* @param word * @param word
*/ */
@ -151,7 +151,7 @@ export class I2CPort {
}, },
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
*/ */
readByte: async () => { readByte: async () => {
@ -164,7 +164,7 @@ export class I2CPort {
}, },
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
* @param length * @param length
*/ */
@ -182,9 +182,9 @@ export class I2CPort {
}, },
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
* @param registerNumber * @param byte
*/ */
writeByte: async (byte) => { writeByte: async (byte) => {
try { try {
@ -196,7 +196,7 @@ export class I2CPort {
}, },
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
* @param * @param
*/ */
@ -225,13 +225,13 @@ export interface I2CSlaveDevice {
/** /**
* @function * @function
* I2c s/I2c/I2C * I2C
* @param registerNumber * @param registerNumber
*/ */
read8(registerNumber: number): Promise<number>; read8(registerNumber: number): Promise<number>;
/** /**
* @function * @function
* I2c s/I2c/I2C * I2C
* @param registerNumber * @param registerNumber
*/ */
read16(registerNumber: number): Promise<number>; read16(registerNumber: number): Promise<number>;
@ -239,42 +239,42 @@ export interface I2CSlaveDevice {
* @function * @function
* I2c s/I2c/I2C * I2c s/I2c/I2C
* @param registerNumber * @param registerNumber
* @param byte * @param value
*/ */
write8(registerNumber: number, value: number): Promise<number>; write8(registerNumber: number, value: number): Promise<number>;
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* @param registerNumber * @param registerNumber
* @param word * @param value
*/ */
write16(registerNumber: number, value: number): Promise<number>; write16(registerNumber: number, value: number): Promise<number>;
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
*/ */
readByte(): Promise<number>; readByte(): Promise<number>;
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
* @param length * @param length
*/ */
readBytes(length: number): Promise<Uint8Array>; readBytes(length: number): Promise<Uint8Array>;
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
* @param byte * @param byte
*/ */
writeByte(byte: number): Promise<number>; writeByte(byte: number): Promise<number>;
/** /**
* @function * @function
* I2c s/byte/bytes * I2c bytes
* Different from Web I2C API specification. * Different from Web I2C API specification.
* @param byte * @param bytes
*/ */
writeBytes(bytes: Array<number>): Promise<Uint8Array>; writeBytes(bytes: Array<number>): Promise<Uint8Array>;
} }