1
0
Fork 0
mirror of https://github.com/chirimen-oh/node-web-i2c.git synced 2025-04-01 19:05:19 +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,
/**
* @function
* I2c s/I2c/I2C
* I2C
* @param registerNumber
*/
read8: (registerNumber) =>
@ -114,7 +114,7 @@ export class I2CPort {
}),
/**
* @function
* I2c s/I2c/I2C
* I2C
* @param registerNumber
*/
read16: (registerNumber) =>
@ -137,7 +137,7 @@ export class I2CPort {
},
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* @param registerNumber
* @param word
*/
@ -151,7 +151,7 @@ export class I2CPort {
},
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
*/
readByte: async () => {
@ -164,7 +164,7 @@ export class I2CPort {
},
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
* @param length
*/
@ -182,9 +182,9 @@ export class I2CPort {
},
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
* @param registerNumber
* @param byte
*/
writeByte: async (byte) => {
try {
@ -196,7 +196,7 @@ export class I2CPort {
},
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
* @param
*/
@ -225,13 +225,13 @@ export interface I2CSlaveDevice {
/**
* @function
* I2c s/I2c/I2C
* I2C
* @param registerNumber
*/
read8(registerNumber: number): Promise<number>;
/**
* @function
* I2c s/I2c/I2C
* I2C
* @param registerNumber
*/
read16(registerNumber: number): Promise<number>;
@ -239,42 +239,42 @@ export interface I2CSlaveDevice {
* @function
* I2c s/I2c/I2C
* @param registerNumber
* @param byte
* @param value
*/
write8(registerNumber: number, value: number): Promise<number>;
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* @param registerNumber
* @param word
* @param value
*/
write16(registerNumber: number, value: number): Promise<number>;
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
*/
readByte(): Promise<number>;
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
* @param length
*/
readBytes(length: number): Promise<Uint8Array>;
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
* @param byte
*/
writeByte(byte: number): Promise<number>;
/**
* @function
* I2c s/byte/bytes
* I2c bytes
* Different from Web I2C API specification.
* @param byte
* @param bytes
*/
writeBytes(bytes: Array<number>): Promise<Uint8Array>;
}