CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 2 matches
CCS Forum Index
Author Message
  Topic: crc 16 calculation help
steve__p

Replies: 8
Views: 24408

PostForum: General CCS C Discussion   Posted: Tue Dec 15, 2020 11:33 am   Subject: crc 16 calculation help
For your info, here is my version without table, used with PIC24FJ128GA306:


uint16 modbus_crc(uint8 *data,uint8 size)
{
uint16 crc;
uint8 i,z;

crc=0xFFFF;
...
  Topic: int32 to int array
steve__p

Replies: 9
Views: 25216

PostForum: General CCS C Discussion   Posted: Thu Sep 10, 2020 12:07 pm   Subject: int32 to int array
what about this:

int32 number;
int *numberarray;

numberarray=(int*) &number;

then you can use numberarray[0]....
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group