CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches

◆ instruction_lettura_ADC()

void instruction_lettura_ADC ( void  )

ADC instrunction implementation with node selection.

This instruction needs to know which node to read. The node to read is at byte istruzione_byte_4_e_scelta_canale of the CAN message.

Returns
No Parameters, the actual result is sent to the CAN bus output throught tx_data.
472 void instruction_lettura_ADC(void){
473 int misura;
475 //! <!-- [cod_parte_finale_ADC] -->
476
477// misura = lettura_ADC( sottoistruzione);
478
479 *(unsigned int *) &tx_data[byte_istr_dati_0] = correzione_misura_ADC(coeffcienti_misura_ADC_nodi[sottoistruzione], misura);
480 //! <!-- [cod_parte_finale_ADC] -->
481 }
uint8_t tx_data[8]
Transmission data vector.
Definition: Can.c:321
void instruction_lettura_ADC(void)
ADC instrunction implementation with node selection.
Definition: Istruzioni.c:472
#define byte_istr_dati_0
Definition: Istruzioni.h:25
#define istruzione_byte_4_e_scelta_canale
Definition: Istruzioni.h:24
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.

Definition at line 472 of file Istruzioni.c.