FORUM TOPIC · READ ONLY
Monitoring RCON register
Monitoring RCON register
Forum : General Remark and Questions
2 message(s) · archive en lecture seule
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 :
but it doesn't compile...what's wrong? Thanks for your help!
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 :
#include <p30f2010.h>
extern uint16_T reset_function(void) {
return RCON;
} but it doesn't compile...what's wrong? Thanks for your help!
Re: Monitoring RCON register
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.
Lubin
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.
Lubin