Parameters: (int destination_array,int destination_array_size, int source_array, int source_array_size, int parity)
Return type: int array
Function description: Calculates the 12 bit hamming code of the 8 data bits passed as source array. The source array must be passed as: [D12, D11, D10, D9, D7, D6, D5, D3] and the hamming code will be returned as [D12, D11, D10, D9, P8, D7, D6, D5, P4, D3, P2, P1]. The parity bit must either be 0 or 1(0: Even parity, 1: Odd parity).
Example: a[n] = *hamming_12(a, n, array, n1, parity);