Finishes Prefix Renames (#152)

This commit is contained in:
Thad House
2016-07-09 01:12:37 -07:00
committed by Peter Johnson
parent b637b9ee4c
commit 43a2eccdc9
30 changed files with 279 additions and 294 deletions

View File

@@ -31,7 +31,7 @@ extern "C" {
* If opening the MXP port, also sets up the pin functions appropriately
* @param port The port to open, 0 for the on-board, 1 for the MXP.
*/
void HAL_I2CInitialize(uint8_t port, int32_t* status) {
void HAL_InitializeI2C(uint8_t port, int32_t* status) {
initializeDigital(status);
if (*status != 0) return;
@@ -80,7 +80,7 @@ void HAL_I2CInitialize(uint8_t port, int32_t* status) {
* @param receiveSize Number of bytes to read from the device.
* @return The number of bytes read (>= 0) or -1 on transfer abort.
*/
int32_t HAL_I2CTransaction(uint8_t port, uint8_t deviceAddress,
int32_t HAL_TransactionI2C(uint8_t port, uint8_t deviceAddress,
uint8_t* dataToSend, uint8_t sendSize,
uint8_t* dataReceived, uint8_t receiveSize) {
if (port > 1) {
@@ -111,7 +111,7 @@ int32_t HAL_I2CTransaction(uint8_t port, uint8_t deviceAddress,
* @param data The byte to write to the register on the device.
* @return The number of bytes written (>= 0) or -1 on transfer abort.
*/
int32_t HAL_I2CWrite(uint8_t port, uint8_t deviceAddress, uint8_t* dataToSend,
int32_t HAL_WriteI2C(uint8_t port, uint8_t deviceAddress, uint8_t* dataToSend,
uint8_t sendSize) {
if (port > 1) {
// Set port out of range error here
@@ -141,7 +141,7 @@ int32_t HAL_I2CWrite(uint8_t port, uint8_t deviceAddress, uint8_t* dataToSend,
* device.
* @return The number of bytes read (>= 0) or -1 on transfer abort.
*/
int32_t HAL_I2CRead(uint8_t port, uint8_t deviceAddress, uint8_t* buffer,
int32_t HAL_ReadI2C(uint8_t port, uint8_t deviceAddress, uint8_t* buffer,
uint8_t count) {
if (port > 1) {
// Set port out of range error here
@@ -157,7 +157,7 @@ int32_t HAL_I2CRead(uint8_t port, uint8_t deviceAddress, uint8_t* buffer,
}
}
void HAL_I2CClose(uint8_t port) {
void HAL_CloseI2C(uint8_t port) {
if (port > 1) {
// Set port out of range error here
return;