@@ -192,7 +192,7 @@ byte MCP_CAN::mcp2515_readRegister(const byte address)
192192
193193/* ********************************************************************************************************
194194** Function name: mcp2515_readRegisterS
195- ** Descriptions: read registerS
195+ ** Descriptions: read sucessive registers
196196*********************************************************************************************************/
197197void MCP_CAN::mcp2515_readRegisterS (const byte address, byte values[], const byte n)
198198{
@@ -235,7 +235,7 @@ void MCP_CAN::mcp2515_setRegister(const byte address, const byte value)
235235
236236/* ********************************************************************************************************
237237** Function name: mcp2515_setRegisterS
238- ** Descriptions: set registerS
238+ ** Descriptions: set sucessive registers
239239*********************************************************************************************************/
240240void MCP_CAN::mcp2515_setRegisterS (const byte address, const byte values[], const byte n)
241241{
@@ -259,7 +259,7 @@ void MCP_CAN::mcp2515_setRegisterS(const byte address, const byte values[], cons
259259
260260/* ********************************************************************************************************
261261** Function name: mcp2515_modifyRegister
262- ** Descriptions: set bit of one register
262+ ** Descriptions: Sets specific bits of a register
263263*********************************************************************************************************/
264264void MCP_CAN::mcp2515_modifyRegister (const byte address, const byte mask, const byte data)
265265{
@@ -279,7 +279,7 @@ void MCP_CAN::mcp2515_modifyRegister(const byte address, const byte mask, const
279279
280280/* ********************************************************************************************************
281281** Function name: mcp2515_readStatus
282- ** Descriptions: read mcp2515's Status
282+ ** Descriptions: read mcp2515's status register
283283*********************************************************************************************************/
284284byte MCP_CAN::mcp2515_readStatus (void )
285285{
@@ -562,7 +562,7 @@ byte MCP_CAN::mcp2515_configRate(const byte canSpeed, const byte clock)
562562
563563/* ********************************************************************************************************
564564** Function name: mcp2515_initCANBuffers
565- ** Descriptions: init canbuffers
565+ ** Descriptions: initialize CAN buffers
566566*********************************************************************************************************/
567567void MCP_CAN::mcp2515_initCANBuffers (void )
568568{
@@ -586,7 +586,7 @@ void MCP_CAN::mcp2515_initCANBuffers(void)
586586
587587/* ********************************************************************************************************
588588** Function name: mcp2515_init
589- ** Descriptions: init the device
589+ ** Descriptions: initialize the controller
590590*********************************************************************************************************/
591591byte MCP_CAN::mcp2515_init (const byte canSpeed, const byte clock)
592592{
@@ -705,7 +705,7 @@ void mcp2515_id_to_buf(const byte ext, const unsigned long id, byte *tbufdata)
705705
706706/* ********************************************************************************************************
707707** Function name: mcp2515_write_id
708- ** Descriptions: write can id
708+ ** Descriptions: write CAN ID
709709*********************************************************************************************************/
710710void MCP_CAN::mcp2515_write_id (const byte mcp_addr, const byte ext, const unsigned long id)
711711{
@@ -717,7 +717,7 @@ void MCP_CAN::mcp2515_write_id(const byte mcp_addr, const byte ext, const unsign
717717
718718/* ********************************************************************************************************
719719** Function name: mcp2515_read_id
720- ** Descriptions: read can id
720+ ** Descriptions: read CAN ID
721721*********************************************************************************************************/
722722void MCP_CAN::mcp2515_read_id (const byte mcp_addr, byte* ext, unsigned long * id)
723723{
@@ -742,7 +742,7 @@ void MCP_CAN::mcp2515_read_id(const byte mcp_addr, byte* ext, unsigned long* id)
742742
743743/* ********************************************************************************************************
744744** Function name: mcp2515_write_canMsg
745- ** Descriptions: write msg
745+ ** Descriptions: write message
746746** Note! There is no check for right address!
747747*********************************************************************************************************/
748748void MCP_CAN::mcp2515_write_canMsg (const byte buffer_sidh_addr, unsigned long id, byte ext, byte rtrBit, byte len, volatile const byte *buf)
@@ -827,7 +827,7 @@ void MCP_CAN::mcp2515_start_transmit(const byte mcp_addr) // start
827827
828828/* ********************************************************************************************************
829829** Function name: mcp2515_isTXBufFree
830- ** Descriptions: Test is tx buffer free for transmitting
830+ ** Descriptions: Test if tx buffer is free for transmitting
831831*********************************************************************************************************/
832832byte MCP_CAN::mcp2515_isTXBufFree (byte *txbuf_n, byte iBuf) /* get Next free txbuf */
833833{
@@ -1120,7 +1120,7 @@ byte MCP_CAN::sendMsg(unsigned long id, byte ext, byte rtrBit, byte len, const b
11201120
11211121/* ********************************************************************************************************
11221122** Function name: sendMsgBuf
1123- ** Descriptions: send buf
1123+ ** Descriptions: Send message to transmitt buffer
11241124*********************************************************************************************************/
11251125byte MCP_CAN::sendMsgBuf (unsigned long id, byte ext, byte rtrBit, byte len, const byte *buf, bool wait_sent)
11261126{
@@ -1129,7 +1129,7 @@ byte MCP_CAN::sendMsgBuf(unsigned long id, byte ext, byte rtrBit, byte len, cons
11291129
11301130/* ********************************************************************************************************
11311131** Function name: sendMsgBuf
1132- ** Descriptions: send buf
1132+ ** Descriptions: Send message to transmitt buffer
11331133*********************************************************************************************************/
11341134byte MCP_CAN::sendMsgBuf (unsigned long id, byte ext, byte len, const byte *buf, bool wait_sent)
11351135{
@@ -1139,7 +1139,7 @@ byte MCP_CAN::sendMsgBuf(unsigned long id, byte ext, byte len, const byte *buf,
11391139
11401140/* ********************************************************************************************************
11411141** Function name: readMsgBuf
1142- ** Descriptions: read message buf
1142+ ** Descriptions: read message from receive buffer
11431143*********************************************************************************************************/
11441144byte MCP_CAN::readMsgBuf (byte *len, byte buf[])
11451145{
@@ -1148,7 +1148,7 @@ byte MCP_CAN::readMsgBuf(byte *len, byte buf[])
11481148
11491149/* ********************************************************************************************************
11501150** Function name: readMsgBufID
1151- ** Descriptions: read message buf and can bus source ID
1151+ ** Descriptions: read message buffer and CAN bus source ID
11521152*********************************************************************************************************/
11531153byte MCP_CAN::readMsgBufID (unsigned long *ID, byte *len, byte buf[])
11541154{
@@ -1262,7 +1262,7 @@ void MCP_CAN::clearBufferTransmitIfFlags(byte flags)
12621262
12631263/* ********************************************************************************************************
12641264** Function name: checkReceive
1265- ** Descriptions: check if got something
1265+ ** Descriptions: check if a message was arrived
12661266*********************************************************************************************************/
12671267byte MCP_CAN::checkReceive (void )
12681268{
@@ -1273,7 +1273,7 @@ byte MCP_CAN::checkReceive(void)
12731273
12741274/* ********************************************************************************************************
12751275** Function name: checkError
1276- ** Descriptions: if something error
1276+ ** Descriptions: check if an error occurred
12771277*********************************************************************************************************/
12781278byte MCP_CAN::checkError (void )
12791279{
@@ -1283,7 +1283,7 @@ byte MCP_CAN::checkError(void)
12831283
12841284/* ********************************************************************************************************
12851285** Function name: getCanId
1286- ** Descriptions: when receive something, you can get the can id!!
1286+ ** Descriptions: return CAN ID of last message
12871287*********************************************************************************************************/
12881288unsigned long MCP_CAN::getCanId (void )
12891289{
@@ -1292,7 +1292,7 @@ unsigned long MCP_CAN::getCanId(void)
12921292
12931293/* ********************************************************************************************************
12941294** Function name: isRemoteRequest
1295- ** Descriptions: when receive something, you can check if it was a request
1295+ ** Descriptions: check if last message was a remote request
12961296*********************************************************************************************************/
12971297byte MCP_CAN::isRemoteRequest (void )
12981298{
@@ -1301,7 +1301,7 @@ byte MCP_CAN::isRemoteRequest(void)
13011301
13021302/* ********************************************************************************************************
13031303** Function name: isExtendedFrame
1304- ** Descriptions: did we just receive standard 11bit frame or extended 29bit? 0 = std, 1 = ext
1304+ ** Descriptions: check if last message used standard 11bit or extended 29bit address. 0 = std, 1 = ext
13051305*********************************************************************************************************/
13061306byte MCP_CAN::isExtendedFrame (void )
13071307{
@@ -1577,4 +1577,4 @@ byte MCP_CAN::digitalRead(const byte pin) {
15771577
15781578/* ********************************************************************************************************
15791579 END FILE
1580- *********************************************************************************************************/
1580+ *********************************************************************************************************/
0 commit comments