MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / i2c_cmd

Function i2c_cmd

bsp/loongson/ls1cdev/libraries/ls1c_i2c.c:92–99  ·  view source on GitHub ↗

* ������Ĵ���д���� * @i2c_info_p i2cģ����Ϣ * @cmd ���� */

Source from the content-addressed store, hash-verified

90 * @cmd ����
91 */
92void i2c_cmd(ls1c_i2c_info_t *i2c_info_p, unsigned char cmd)
93{
94 void *i2c_base = i2c_get_base(i2c_info_p->I2Cx);
95
96 reg_write_8(cmd, i2c_base + LS1C_I2C_CMD_OFFSET);
97
98 return ;
99}
100
101
102/*

Callers 6

i2c_cmd_startFunction · 0.85
i2c_cmd_stopFunction · 0.85
i2c_cmd_writeFunction · 0.85
i2c_cmd_read_ackFunction · 0.85
i2c_cmd_read_nackFunction · 0.85
i2c_cmd_iackFunction · 0.85

Calls 2

i2c_get_baseFunction · 0.85
reg_write_8Function · 0.70

Tested by

no test coverage detected