@@ -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{
@@ -551,7 +551,7 @@ byte MCP_CAN::mcp2515_configRate(const byte canSpeed, const byte clock)
551551
552552/* ********************************************************************************************************
553553** Function name: mcp2515_initCANBuffers
554- ** Descriptions: init canbuffers
554+ ** Descriptions: initialize CAN buffers
555555*********************************************************************************************************/
556556void MCP_CAN::mcp2515_initCANBuffers (void )
557557{
@@ -575,7 +575,7 @@ void MCP_CAN::mcp2515_initCANBuffers(void)
575575
576576/* ********************************************************************************************************
577577** Function name: mcp2515_init
578- ** Descriptions: init the device
578+ ** Descriptions: initialize the controller
579579*********************************************************************************************************/
580580byte MCP_CAN::mcp2515_init (const byte canSpeed, const byte clock)
581581{
@@ -694,7 +694,7 @@ void mcp2515_id_to_buf(const byte ext, const unsigned long id, byte *tbufdata)
694694
695695/* ********************************************************************************************************
696696** Function name: mcp2515_write_id
697- ** Descriptions: write can id
697+ ** Descriptions: write CAN ID
698698*********************************************************************************************************/
699699void MCP_CAN::mcp2515_write_id (const byte mcp_addr, const byte ext, const unsigned long id)
700700{
@@ -706,7 +706,7 @@ void MCP_CAN::mcp2515_write_id(const byte mcp_addr, const byte ext, const unsign
706706
707707/* ********************************************************************************************************
708708** Function name: mcp2515_read_id
709- ** Descriptions: read can id
709+ ** Descriptions: read CAN ID
710710*********************************************************************************************************/
711711void MCP_CAN::mcp2515_read_id (const byte mcp_addr, byte* ext, unsigned long * id)
712712{
@@ -731,7 +731,7 @@ void MCP_CAN::mcp2515_read_id(const byte mcp_addr, byte* ext, unsigned long* id)
731731
732732/* ********************************************************************************************************
733733** Function name: mcp2515_write_canMsg
734- ** Descriptions: write msg
734+ ** Descriptions: write message
735735** Note! There is no check for right address!
736736*********************************************************************************************************/
737737void MCP_CAN::mcp2515_write_canMsg (const byte buffer_sidh_addr, unsigned long id, byte ext, byte rtrBit, byte len, volatile const byte *buf)
@@ -816,7 +816,7 @@ void MCP_CAN::mcp2515_start_transmit(const byte mcp_addr) // start
816816
817817/* ********************************************************************************************************
818818** Function name: mcp2515_isTXBufFree
819- ** Descriptions: Test is tx buffer free for transmitting
819+ ** Descriptions: Test if tx buffer is free for transmitting
820820*********************************************************************************************************/
821821byte MCP_CAN::mcp2515_isTXBufFree (byte *txbuf_n, byte iBuf) /* get Next free txbuf */
822822{
@@ -1109,7 +1109,7 @@ byte MCP_CAN::sendMsg(unsigned long id, byte ext, byte rtrBit, byte len, const b
11091109
11101110/* ********************************************************************************************************
11111111** Function name: sendMsgBuf
1112- ** Descriptions: send buf
1112+ ** Descriptions: Send message to transmitt buffer
11131113*********************************************************************************************************/
11141114byte MCP_CAN::sendMsgBuf (unsigned long id, byte ext, byte rtrBit, byte len, const byte *buf, bool wait_sent)
11151115{
@@ -1118,7 +1118,7 @@ byte MCP_CAN::sendMsgBuf(unsigned long id, byte ext, byte rtrBit, byte len, cons
11181118
11191119/* ********************************************************************************************************
11201120** Function name: sendMsgBuf
1121- ** Descriptions: send buf
1121+ ** Descriptions: Send message to transmitt buffer
11221122*********************************************************************************************************/
11231123byte MCP_CAN::sendMsgBuf (unsigned long id, byte ext, byte len, const byte *buf, bool wait_sent)
11241124{
@@ -1128,7 +1128,7 @@ byte MCP_CAN::sendMsgBuf(unsigned long id, byte ext, byte len, const byte *buf,
11281128
11291129/* ********************************************************************************************************
11301130** Function name: readMsgBuf
1131- ** Descriptions: read message buf
1131+ ** Descriptions: read message from receive buffer
11321132*********************************************************************************************************/
11331133byte MCP_CAN::readMsgBuf (byte *len, byte buf[])
11341134{
@@ -1137,7 +1137,7 @@ byte MCP_CAN::readMsgBuf(byte *len, byte buf[])
11371137
11381138/* ********************************************************************************************************
11391139** Function name: readMsgBufID
1140- ** Descriptions: read message buf and can bus source ID
1140+ ** Descriptions: read message buffer and CAN bus source ID
11411141*********************************************************************************************************/
11421142byte MCP_CAN::readMsgBufID (unsigned long *ID, byte *len, byte buf[])
11431143{
@@ -1251,7 +1251,7 @@ void MCP_CAN::clearBufferTransmitIfFlags(byte flags)
12511251
12521252/* ********************************************************************************************************
12531253** Function name: checkReceive
1254- ** Descriptions: check if got something
1254+ ** Descriptions: check if a message was arrived
12551255*********************************************************************************************************/
12561256byte MCP_CAN::checkReceive (void )
12571257{
@@ -1262,7 +1262,7 @@ byte MCP_CAN::checkReceive(void)
12621262
12631263/* ********************************************************************************************************
12641264** Function name: checkError
1265- ** Descriptions: if something error
1265+ ** Descriptions: check if an error occurred
12661266*********************************************************************************************************/
12671267byte MCP_CAN::checkError (void )
12681268{
@@ -1272,7 +1272,7 @@ byte MCP_CAN::checkError(void)
12721272
12731273/* ********************************************************************************************************
12741274** Function name: getCanId
1275- ** Descriptions: when receive something, you can get the can id!!
1275+ ** Descriptions: return CAN ID of last message
12761276*********************************************************************************************************/
12771277unsigned long MCP_CAN::getCanId (void )
12781278{
@@ -1281,7 +1281,7 @@ unsigned long MCP_CAN::getCanId(void)
12811281
12821282/* ********************************************************************************************************
12831283** Function name: isRemoteRequest
1284- ** Descriptions: when receive something, you can check if it was a request
1284+ ** Descriptions: check if last message was a remote request
12851285*********************************************************************************************************/
12861286byte MCP_CAN::isRemoteRequest (void )
12871287{
@@ -1290,7 +1290,7 @@ byte MCP_CAN::isRemoteRequest(void)
12901290
12911291/* ********************************************************************************************************
12921292** Function name: isExtendedFrame
1293- ** Descriptions: did we just receive standard 11bit frame or extended 29bit? 0 = std, 1 = ext
1293+ ** Descriptions: check if last message used standard 11bit or extended 29bit address. 0 = std, 1 = ext
12941294*********************************************************************************************************/
12951295byte MCP_CAN::isExtendedFrame (void )
12961296{
@@ -1299,4 +1299,4 @@ byte MCP_CAN::isExtendedFrame(void)
12991299
13001300/* ********************************************************************************************************
13011301 END FILE
1302- *********************************************************************************************************/
1302+ *********************************************************************************************************/
0 commit comments