Monitoring RCON register

Create new topics, add your comment, remark, bugs...
Post Reply
Posts: 4
Joined: Fri May 27, 2011 4:54 pm

Monitoring RCON register

Post by frouby » Mon May 30, 2011 10:46 am

Hello everybody!

I would like to monitor the RCON register, so I put a C function call block with only one Output (output size 1 et output type uint16) and the function name is called 'reset_function'. I did this very simple C program :

Code: Select all

#include <p30f2010.h>

extern uint16_T reset_function(void) {
    return RCON;

but it doesn't compile...what's wrong? Thanks for your help!

Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France

Re: Monitoring RCON register

Post by LubinKerhuel » Mon Jun 27, 2011 11:39 pm

I hope you already find the problem.

If not, please attached the model and c code file with your post.
Anyway, I am wondering if the datatype you are using within your file is defined. You might either use unsigned int instead of uint16_T, or include the datatype def file generated by simulink.


Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests